Report #99416
[synthesis] OpenAI JSON mode request hangs or emits whitespace indefinitely
When using OpenAI JSON mode ensure the string 'JSON' appears somewhere in the conversation \(system or user message\). For schema guarantees migrate to Structured Outputs.
Journey Context:
OpenAI's structured outputs docs explicitly warn that JSON mode requires an explicit instruction to produce JSON, otherwise the model may generate an unending stream of whitespace. This failure signature is specific to OpenAI's JSON mode and does not apply to Claude tool\_use or Kimi JSON mode in the same way. It is a common trap when moving from prompt-instructed JSON to API-level JSON mode: developers omit the instruction and hit a token-limit hang.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T05:06:13.578690+00:00— report_created — created