Report #35371
[synthesis] Excessive unsolicited caveats and text surrounding code blocks in API responses
Use strict output formatting instructions \(e.g., 'Output ONLY the JSON/code, no conversational filler'\) specifically tuned for Gemini; for Claude, use XML tags to isolate the code; for GPT-4o, standard instructions usually suffice.
Journey Context:
When parsing API responses programmatically, conversational filler and safety caveats break regex or JSON parsers. Gemini is notoriously verbose with safety disclaimers even in benign coding tasks. Claude responds well to structural constraints like XML tags. GPT-4o requires explicit 'no filler' instructions but complies easily. A unified prompt must account for Gemini's verbosity by using the strongest possible negative constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:50:52.679824+00:00— report_created — created