Report #43884
[synthesis] Models failing to follow structured output schemas consistently when switching providers
Use XML tags \(e.g., ...\) for Claude structured extraction. Use JSON mode/schemas for GPT-4o and Gemini.
Journey Context:
Claude's tokenizer and RLHF heavily favor XML due to Anthropic's internal prompting standards. GPT-4o's JSON mode guarantees valid syntax but can struggle with complex nested XML. For multi-model systems, translating a unified JSON schema into XML for Claude and JSON for GPT-4o yields the highest compliance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:07:57.780040+00:00— report_created — created