{"slug": "llm-0-37-3", "title": "llm 0.37.3", "summary": "Simon Willison released llm 0.37.3, a bug-fix release of the LLM command-line tool, after Homebrew began shipping SQLite 3.54.1, which broke LLM's logging code. SQLite's 3.54.1 change means a subquery such as (select json_array(1)) now returns SQL text rather than JSON, so json_object('a', (select json_array(1))) yields {\"a\":\"[1]\"} instead of {\"a\":[1]}; SQLite creator D. Richard Hipp said \"That was a bug fix\" and that 3.54.0 was the buggy version. The documented workaround wraps the subquery in json(), as in select json_object('a', json((select json_array(1)))).", "body_md": "**Release:** [llm 0.37.3](https://github.com/simonw/llm/releases/tag/0.37.3)\n\nA bug fix release for [LLM](https://llm.datasette.io), mainly to cover a problem with the most recent Homebrew package of the software.\n\nHomebrew now ships the latest SQLite, [3.54.1](https://www.sqlite.org/releaselog/3_54_1.html), which includes [a fix](https://sqlite.org/bugs/info/2026-10-12T13:52:22Z) that [broke LLM's logging code](https://github.com/simonw/llm/issues/1879).\n\nShort version: in SQLite 3.54.0 the following SQL:\n\n```\nselect json_object('a', (select json_array(1)))\n```\n\nReturns this:\n\n```\n{\"a\":[1]}\n```\n\nBut in 3.54.1 the same query returns this:\n\n```\n{\"a\":\"[1]\"}\n```\n\nAccording [to D. Richard Hipp](https://sqlite.org/forum/forumpost/dff1a343157e422f):\n\nThat was a bug fix. Per the documentation, (SELECT json_array(...)) returns SQL text, not JSON. Hence the 3.54.1 behavior is correct and 3.54.0 was a bug.\n\nThe workaround looks like this:\n\n```\nselect json_object('a', json((select json_array(1))))\n```\n\nTags: [llm](https://simonwillison.net/tags/llm), [webassembly](https://simonwillison.net/tags/webassembly), [sqlite](https://simonwillison.net/tags/sqlite), [generative-ai](https://simonwillison.net/tags/generative-ai), [ai](https://simonwillison.net/tags/ai), [llms](https://simonwillison.net/tags/llms), [d-richard-hipp](https://simonwillison.net/tags/d-richard-hipp)", "url": "https://wpnews.pro/news/llm-0-37-3", "canonical_source": "https://simonwillison.net/2026/Nov/16/llm/", "published_at": "2026-11-16 23:57:26+00:00", "updated_at": "2026-11-17 20:24:02.877636+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "generative-ai"], "entities": ["llm", "Simon Willison", "SQLite", "Homebrew", "D. Richard Hipp"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/llm-0-37-3", "markdown": "https://wpnews.pro/news/llm-0-37-3.md", "text": "https://wpnews.pro/news/llm-0-37-3.txt", "jsonld": "https://wpnews.pro/news/llm-0-37-3.jsonld"}}