LLMs are bad at returning code in JSONaider.chat 5 pointspcwelder1 year ago1 commentSaveHideCopy link On HNComments−pcwelderOP1yPSA: 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.
Comments
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.