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

Structured outputs

response_format は受理され、上流へは転送されません (openai-ignorable-keys)。出力制約が必要ならプロンプトで JSON を要求し、呼び出し側で検証してください。

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