Decisions
Translate Jev requests
The native /v1/decide request for a Jev request, with notes on what changed.
No model runs, so it is free and needs no key.
POST
/
v1
/
systemone
/
translate
Translate Jev requests
curl --request POST \
--url https://api.sqwish.ai/v1/systemone/translate \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"questions": {},
"state": ""
}
'import requests
url = "https://api.sqwish.ai/v1/systemone/translate"
payload = {
"model": "<string>",
"questions": {},
"state": ""
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', questions: {}, state: ''})
};
fetch('https://api.sqwish.ai/v1/systemone/translate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"policy": {
"action_costs": {},
"abstain_below": 0.5
}
}
],
"model": "<string>",
"context": "",
"images": [
{
"id": 32,
"media_type": "image/jpeg",
"data": "<string>"
}
],
"fallback": "auto",
"temperature": 2.6
},
"notes": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Translate Jev requests
curl --request POST \
--url https://api.sqwish.ai/v1/systemone/translate \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"questions": {},
"state": ""
}
'import requests
url = "https://api.sqwish.ai/v1/systemone/translate"
payload = {
"model": "<string>",
"questions": {},
"state": ""
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', questions: {}, state: ''})
};
fetch('https://api.sqwish.ai/v1/systemone/translate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"policy": {
"action_costs": {},
"abstain_below": 0.5
}
}
],
"model": "<string>",
"context": "",
"images": [
{
"id": 32,
"media_type": "image/jpeg",
"data": "<string>"
}
],
"fallback": "auto",
"temperature": 2.6
},
"notes": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}