Evaluate questions with the OpenAI Decisions API
Changed onScores questions against shared text input using a cached local llama_cpp LLM and native logits. This server accepts text only; image input is unsupported. Candidate probabilities are normalized over the supplied choices or levels and are not calibrated.
post/v1/decisions
Request
- The document declares no server URL.
- Authnone declared
Request body
Example request
{
"model": "local/decision-model:Q4_K_M",
"input": "Our checkout has returned 500 errors since 9am.",
"questions": [
{
"name": "label",
"type": "choice",
"instructions": "Which label fits this ticket?",
"choices": [
{
"value": "billing",
"description": "Payments and refunds"
},
{
"value": "bug",
"description": "Software errors"
},
{
"value": "account",
"description": "Login and account access"
}
]
},
{
"name": "urgent",
"type": "predicate",
"instructions": "Is a critical business operation currently blocked?"
},
{
"name": "severity",
"type": "score",
"instructions": "How severe is the issue?",
"levels": [
{
"label": "low"
},
{
"label": "moderate"
},
{
"label": "critical"
}
]
}
]
}Response
Answers in question order with token usage
Changes
- info
the request property
modelbecame optional
- info
- info
endpoint added
- info