---
id: 11886
lang: en
title: "Simon Willison releases llm 0.31.1 with a fix for a tool-call bug"
published_at: "2026-07-18 14:34:00"
source_name: "Simon Willison"
source_url: "https://simonwillison.net/2026/Jul/9/llm/#atom-everything"
canonical_url: "https://news.hamidun.com/en/news/11886"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Simon Willison releases llm 0.31.1 with a fix for a tool-call bug

> **Краткая суть (BLUF):** Simon Willison has updated his open-source CLI tool llm to version 0.31.1. The patch fixes a bug where a tool call with empty arguments sometimes caused a JSON error with certain providers when working through the OpenAI Chat Completion API.  The bug surfaced while he was testing his own plugin, llm-meta-ai.

Developer Simon Willison has released version 0.31.1 of llm, his open-source command-line utility and Python library for working with large language models from the terminal.

## What was fixed

The patch fixes a bug in how llm works with OpenAI Chat Completion endpoints: when a model called a tool (tool call) with empty arguments, some providers returned a JSON format error instead of a valid result. The error is tracked in issue #1521 in the project's GitHub repository.

## How the bug was found

Willison found the problem while testing another of his projects, the llm-meta-ai plugin, which adds support for Meta models to llm. The tool is built as a plugin system: the base CLI can be extended with support for new providers and models without changing the core, so bugs in the core tool-calling logic affect every installed plugin at once.

The project's author is also known as the creator of Datasette, an open-source tool for publishing and exploring data, and his work on LLM tooling has long drawn attention from the developer community.

## What this means

Even small CLI tools for working with LLMs increasingly depend on the reliability of tool calling, the mechanism by which a model calls external functions. JSON format errors in such chains can break entire automated pipelines, so targeted patches like this matter to developers building agents on top of third-party APIs.

---
- **Первоисточник:** [Simon Willison](https://simonwillison.net/2026/Jul/9/llm/#atom-everything)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/11886
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
