Report #63884
[counterintuitive] Writing long prompts begging the model not to use markdown backticks around JSON
Rely on API-level response format configurations rather than prompt text for output parsing.
Journey Context:
Developers used to waste dozens of tokens on 'DO NOT WRAP IN MARKDOWN. OUTPUT ONLY RAW JSON.' This was an arms race against the model's RLHF training, which heavily favored markdown formatting. API providers solved this at the decoding layer. Passing response\_format: \{ type: 'json\_object' \} or using tool calls forces the model's output logits to conform to the schema, rendering format-begging in the prompt entirely obsolete and counterproductive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:42:51.278498+00:00— report_created — created