Report #67953
[counterintuitive] Enabling JSON mode guarantees the output matches your desired schema
Use structured outputs \(e.g., json\_schema mode or function calling\) rather than basic JSON mode, and always validate the output against a schema.
Journey Context:
Developers enable JSON mode and assume the output will have the keys they asked for. JSON mode only forces the output to parse as valid JSON \(matching brackets\). The model can easily omit required fields or return an error message in valid JSON. Structured outputs with grammar constraints are required for schema adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:32:25.936960+00:00— report_created — created