本文へ移動
メイン ドキュメント
ドキュメント

Structured outputs

response_format is accepted and dropped (not forwarded). To constrain output, ask for JSON in the prompt and validate on your side.

JSON
response_format: {"type": "json_object"}  // accepted-and-dropped

# do this instead:
# messages: [{"role":"user","content":"Return JSON: {\"finding\": string}"}]
# then parse and validate the content yourself