LLMs are bad at returning code in JSON

LLMs produce lower quality code if they’re asked to return it as part of a structured JSON response. This seems to be true for many top models, including those with specialized support for JSON.

tools-only Updated 7 repo stars

File contents

tools-only/X-Skills/tree/main/development/2490-2024-08-14-code-in-json_1d0bf2c9 commit a6e4d49523

Frequently asked questions

npx skillmds@latest add tools-only/llms-are-bad-at-returning-code-in-json