RC RANDOM CHAOS

LLM 0.37.3 Fixes SQLite 3.54.1 Logging Regression

· via Simon Willison

Original source

llm 0.37.3

Simon Willison →

LLM released version 0.37.3 to address a logging failure caused by Homebrew’s upgrade to SQLite 3.54.1. The new SQLite version introduced a behavioral change: SELECT json_array calls nested within json_object now return text strings instead of JSON objects. This incompatibility broke LLM’s logging code.

SQLite creator D. Richard Hipp explained this was an intentional correction. The library’s documentation specifies that SELECT json_array returns SQL text, not JSON. Version 3.54.0 incorrectly produced JSON output, while 3.54.1 restores the documented behavior.

The workaround involves wrapping nested SELECT json_array calls with an explicit json() function to force proper type conversion. This ensures LLM works correctly with the new SQLite version.

Read the full article

Continue reading at Simon Willison →

This is an AI-generated summary. Read the original for the full story.