datasette-llm 0.1a11 Adds Local Model Endpoints
Simon Willison released datasette-llm 0.1a11, an alpha update to the intermediate plugin that configures LLMs for other Datasette plugins. The new capability is support for OpenAI-compatible endpoints: any server that speaks the OpenAI web protocol can now be configured as the model backend. In practice this means local models served by LM Studio, Ollama or llama.cpp can power Datasette Agent, the chat interface that queries databases. The release post shows a one-line uvx command that downloads a sample database, sets a default model with a model name and api_base pointing at localhost, and starts a server; the screenshot shows the agent answering a question about repo and release counts by running SQL. This is an alpha release with no performance or cost figures, and the post does not state which endpoint features are unsupported.
Anyone running Datasette with agent plugins can now keep queries and data on their own machine by pointing the default_model setting at a local OpenAI-compatible server instead of a hosted API, which removes per-token costs and data leaving the network. The catch is that the local model must handle tool calls well enough to produce SQL, and the post offers no comparison of how smaller local models perform against hosted ones.