Datasette新增兼容接口配置,可用本地模型运行数据Agent
Simon Willison发布datasette-llm 0.1a11,新增OpenAI兼容接口支持。作者给出用LM Studio中的本地模型驱动Datasette Agent的配置示例,也可连接Ollama、llama.cpp等提供的兼容服务。使用前需准备相应模型服务。
为本地数据Agent提供可参考的配置示例。原文正文+原站 RSS 时间核验,并核对作者自有站点说明;未独立复测运行效果。
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 · simonwillison.net