Report #78299
[synthesis] Model fails to follow complex output structure or ignores formatting instructions
Use XML tags for Claude's structured inputs/outputs and Markdown/JSON for GPT-4o. If writing cross-model prompts, use XML as Claude degrades less with XML than GPT-4o degrades with JSON, but ideally maintain model-specific prompt templates.
Journey Context:
Developers often write a single prompt and expect it to work across models. If the prompt uses JSON for context, Claude sometimes gets confused with escaping. If it uses Markdown, Claude might blend it with its training. Claude's training heavily relies on XML tags. GPT-4o handles JSON natively due to its function calling architecture. Using XML for Claude and JSON for GPT-4o yields the highest instruction-following fidelity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:01:00.704046+00:00— report_created — created