Datasette 插件 datasette-llm 0.1a11 发布,支持 OpenAI 兼容端点
datasette-llm 0.1a11
Datasette 插件 datasette-llm 发布 0.1a11 版本,新增对 OpenAI 兼容接口端点的支持。用户可借此接入由 LM Studio、Ollama 或 llama.cpp 等工具托管的本地模型,并通过 uvx 启动运行由本地大语言模型驱动的 Datasette Agent 实例。
datasette-llm is the intermediate plugin for Datasette that supports configuring LLMs for use with other Datasette plugins.
This release adds support for OpenAI-compatible endpoints, so you can configure Datasette to use an LLM hosted anywhere that talks the OpenAI pseudo-standard web protocol.
This means that if you're running local models with LM Studio or Ollama or llama.cpp (which just hit v1.0.0) you can run Datasette via uvx like this:
wget https://datasette.io/content.db uvx --with datasette-agent datasette \ --root --secret 1 \ -s plugins.datasette-llm.default_model '{ "model": "lmstudio-qwen", "model_name": "qwen/qwen3.8-27b", "api_base": "http://localhost:1234/v1" }' content.db
And you'll get a local server running a Datasette Agent instance powered by your local model!

来源:Simon Willison's Weblog · simonwillison.net