llm 0.37.3 fixes logging broken by SQLite 3.54.1
Original title: llm 0.37.3
Homebrew's SQLite 3.54.1 returns nested JSON subqueries as text, which broke LLM's logging until a json() wrap.
Simon Willison released llm 0.37.3 mainly to fix logging after Homebrew began shipping SQLite 3.54.1. In 3.54.0, a json_object call wrapping a json_array subquery returned a JSON array; 3.54.1 returns that value as quoted text. SQLite author D. Richard Hipp said 3.54.1 matches the documentation and 3.54.0 was the bug. The workaround wraps the subquery in json().
- The release targets a Homebrew package that ships SQLite 3.54.1.
- json_object('a', (select json_array(1))) now returns {"a":"[1]"}.
- The workaround is json_object('a', json((select json_array(1)))).
From the original article
Release: llm 0. 37. 3 A bug fix release for LLM , mainly to cover a problem with the most recent Homebrew package of the software.
simonwillison.net
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.