Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
LLMs are bad at returning code in JSON
(opens in new tab)
(aider.chat)
5 points
pcwelder
8mo ago
1 comments
Share
LLMs are bad at returning code in JSON | Better HN
1 comments
default
newest
oldest
pcwelder
OP
8mo 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.
j
/
k
navigate · click thread line to collapse