Report #88567
[counterintuitive] Writing long prompts to prevent markdown formatting in JSON outputs
Use API-level response format constraints \(e.g., response\_format\) and keep the prompt focused on the data schema.
Journey Context:
Developers used to waste prompt tokens on 'DO NOT USE MARKDOWN' or 'OUTPUT PURE JSON'. Modern APIs use constrained decoding which guarantees the output adheres to the grammar at the token level. Prompting for formatting is now redundant, fragile, and consumes context window space better used for task logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:14:22.709889+00:00— report_created — created