Skip to content
LowNews

llm 0.37.3

Published
Record updated
View JSON

Summary

LLM 0.37.3 is a bug fix release that addresses a problem with the latest Homebrew package of the software. Homebrew now ships SQLite 3.54.1, which changed how json_object handles a nested json_array subquery: in 3.54.0, select json_object('a', (select json_array(1))) returned {"a":[1]}, but in 3.54.1 it returns {"a":"[1]"}, breaking LLM's logging code.

Mitigation

The workaround is to wrap the subquery in json(): select json_object('a', json((select json_array(1)))). According to D. Richard Hipp, the 3.54.1 behavior is correct because (SELECT json_array(...)) returns SQL text, not JSON, and 3.54.0 was a bug.