Report #83137
[counterintuitive] Enabling JSON mode guarantees valid API outputs
Implement independent semantic validation \(e.g., Pydantic\) on top of JSON mode; treat JSON mode only as a syntactic guarantee, not a logical one.
Journey Context:
Developers enable response\_format=json\_object and assume the output is safe to parse and use directly. JSON mode forces the model to output valid JSON syntax, but it will happily hallucinate values that violate business logic \(e.g., negative ages, wrong enum types, missing required keys if schema isn't strictly enforced\). The model is still a probabilistic text generator; syntactic constraints do not equal semantic constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:08:18.759502+00:00— report_created — created