跳到正文
原文
Simon Willison·· 12 天前AI 评分37

LLM 0.37.3 缺陷修复版发布

llm 0.37.3

AI 导读

LLM 0.37.3 是一次缺陷修复发布,主要覆盖该软件最新 Homebrew 包引发的问题。Homebrew 现在附带最新的 SQLite 3.54.1,其中一项修复破坏了 LLM 的日志代码。

正文 · 原文

A bug fix release for LLM, mainly to cover a problem with the most recent Homebrew package of the software.

Homebrew now ships the latest SQLite, 3.54.1, which includes a fix that broke LLM's logging code.

Short version: in SQLite 3.54.0 the following SQL:

select json_object('a', (select json_array(1)))

Returns this:

{"a":[1]}

But in 3.54.1 the same query returns this:

{"a":"[1]"}

According to D. Richard Hipp:

That 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.

The workaround looks like this:

select json_object('a', json((select json_array(1))))

来源:Simon Willison · simonwillison.net