response_format values.
json_schema.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Request JSON object and JSON schema responses.
response_format values.
{
"model": "auto",
"response_format": { "type": "json_object" },
"messages": [{ "role": "user", "content": "Return a JSON deployment summary." }]
}
json_schema.
{
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "receipt_summary",
"strict": true,
"schema": { "type": "object" }
}
}
}