Report #85162
[synthesis] GPT-4o ignores or breaks when using Assistant pre-filling that works perfectly for Claude
Do not use Assistant pre-filling for cross-model prompts. Instead, use strong System prompt instructions and few-shot examples. If using Claude exclusively, leverage pre-filling to guarantee output format \(e.g., starting with \`\{\`\).
Journey Context:
Claude's architecture allows the user to supply the first few tokens of the model's response, which forces the model to continue in that exact vein \(e.g., starting with \`\{\` guarantees JSON, starting with \`<\` guarantees XML\). GPT-4o's API and training do not treat the assistant message as a pre-fill; it's treated as conversational history, leading to GPT-4o repeating the pre-fill or acting confused. For a multi-provider agent, you must abandon the pre-fill hack and rely on strict system prompts and native Structured Outputs \(JSON mode\) for GPT-4o.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:31:54.906238+00:00— report_created — created