LLM 0.32a0 is a major backwards-compatible refactor

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers using the LLM library can now handle mixed streaming output (tool calls, reasoning, audio) and replay pre-seeded message histories without depending on SQLite.

Read this as

Simon Willison's LLM, a free Python library and command-line tool for talking to AI models, has a new test version called 0.32a0. Previously it only handled sending text and getting text back, even as models gained the ability to return images, audio and tool calls. The new version lets you feed a model a whole prior conversation in one call and handles responses that mix text, reasoning and tool instructions. Anyone building Python apps on top of AI models is affected.

Willison's LLM library, which abstracts access to thousands of models via plugins, has released an alpha (0.32a0) whose two big API changes make it competitive with vendor SDKs for building chat and agent features. Teams that adopted LLM avoid being locked into SQLite for conversation storage, and can now process responses combining text, tool calls and media from providers like OpenAI and Anthropic. Because it is backwards compatible, existing code keeps working.

LLM 0.32a0 replaces the prompt/response model with two interfaces: model.prompt() now accepts a messages=[] array built via new llm.user() and llm.assistant() helpers, plus a response.reply() alternative to Conversation objects. Responses can stream typed event parts via response.stream_events(), handling interleaved text, reasoning, tool_call_name/tool_call_args and server-side tools like OpenAI's code interpreter. The prompt= argument is upgraded internally to a single-item messages list, so the change is backwards compatible.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

LLM Simon Willison Datasette ChatGPT OpenAI Anthropic

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading