LLMs are bad at returning code in JSON

4 pcwelder 1 7/27/2025, 9:44:16 AM aider.chat ↗

Comments (1)

pcwelder · 2h ago
PSA: don't generate code using tools (and MCPs) if you're using Gemini or Openai; both ask LLMs to generate JSON directly for function calling. Claude uses XML, so it escapes the issue.