LLM Chat Completions Server 0.1a0 Released: Local OpenAI-Compatible API
Score
75介绍了LLM生态中一个新工具,解决了本地模型与标准API兼容的实际问题,对开发者有较高信息增量。
文章简洁清晰,技术细节充分,但内容较短,未涉及基准测试或深度讨论。
对于那些想本地部署模型并兼容现有工具链的开发者,该插件有很高的实用价值。
0.1a0版本刚刚发布,且基于最新的LLM 0.32rc1,时效性很强。
Simon Willison是知名开发者,其博客具有权威性,且代码已在PyPI公开。
Base 83 × T2 Source weight ×0.9 = 75
Curation line 70Selected
Why selected
This is a significant extension to the LLM toolchain, bridging the gap between local models and standard APIs, offering high practicality and innovation.
AI commentary
「This article is valuable for developers who want to use open-source models while maintaining compatibility with the OpenAI API ecosystem. It demonstrates the practical capability of AI-generated tools and the elegance of content-addressable logs in conversation management. For engineers building local inference services, this plugin can directly reduce integration complexity.」
Quick overview
Simon Willison released llm-chat-completions-server 0.1a0, a plugin for the LLM CLI tool that exposes local models via an OpenAI Chat Completions-compatible API. It leverages the content-addressable logs in LLM 0.32rc1 to deduplicate message parts by hashing, supporting long-running conversations where the client tracks state. The entire plugin was written by GPT-5.6 Sol, demonstrating AI's ability to generate practical tools.
- Plugin exposes local LLM models as standard OpenAI Chat Completions API endpoints.
- Uses content-addressable logs for message deduplication, enabling client-side conversation continuity.
- Code generated by GPT-5.6 Sol, showcasing AI's potential in tool development.
- Easy installation: via pip or uv, start server with a single command.
Full text
Showing the source text; the full translation is being generated.
Release: llm-chat-completions-server 0.1a0
A key goal of the new content-addressable logs in LLM 0.32rc1 was being able to support OpenAI Chat Completion style requests where each incoming message extends the previous conversation, like this:
curl http://localhost:8002/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen3.5-4b",
"messages": [
{"role": "user", "content": "Capital of France?"},
{"role": "assistant", "content": "Paris."},
{"role": "user", "content": "Germany?"}
]
}'
Here the conversation state is tracked by the client, so each of these requests gets longer and longer. The new schema design in LLM is designed to de-duplicate these using hashes of the individual message parts.
To test that out, I built this plugin:
uv tool install llm --pre
llm install llm-chat-completions-server
llm chat-completions-server -p 9001
Running this starts a localhost server on port 9001 that exposes your full collection of LLM models (from any plugins you have installed) using a ChatGPT Completions compatible endpoint.
GPT-5.6 Sol wrote the whole thing - it turns out it knows the OpenAI Chat Completions API shape really well.
Related items
92
FeaturedOpenRouter Launches Prompt Caching with Sticky Routing to Drastically Reduce Multi-Turn Costs
OpenRouter 推出提示缓存与粘性路由,大幅降低多轮对话成本
For developers making frequent AI API calls, this feature is a direct money-saver. Sticky routing guarantees cache hit rates, and session_id requires zero configuration—every OpenRouter user should try it immediately.
91
FeaturedChatGPT Work: An AI Agent That Takes Action Across Apps and Files
ChatGPT Work:可在跨应用和文件中执行操作的AI Agent
I think this is a key step for AI assistants moving from Q&A to execution. Especially noteworthy for professionals who need to automate complex workflows. ChatGPT Work could become a new paradigm for productivity tools.
90
FeaturedAnatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident
前沿实验室代理入侵事件技术时间线:2026年7月事件剖析
This technical timeline is a must-read for all AI security researchers and agent developers—it doesn't just describe one attack but sounds an alarm on the weak defense systems of agent architectures. For teams deploying autonomous agents, this is an essential disaster prevention manual.
90
FeaturedBetter Tools Made Copilot Code Review Worse? Here's How GitHub Improved It
更好的工具反而让Copilot代码审查更糟?GitHub这样改进
This blog post deserves close reading by all AI product engineers and ML practitioners—it breaks the intuition that 'more powerful tools = better AI' and instead emphasizes an engineering philosophy aligned with agent reasoning patterns. Especially important for teams optimizing code review or similar agent-based products.
88
FeaturedOpenRouter Launches Unified Multimodal API: Single Endpoint for Image, Video, Audio, Embeddings, and Transcription
OpenRouter 推出统一多模态 API:单端点支持图像、视频、音频、嵌入与转录
This news is worth attention from all developers building multimodal AI applications: OpenRouter's unified API solves the pain of model switching, especially for startups or rapid prototyping. If you're struggling with multiple API keys and SDKs, this interface could be the unified layer you need.
87
FeaturedAnthropic Launches Claude for Teachers: AI Tools Designed for Educators
Anthropic 推出 Claude for Teachers:面向教师的教育 AI 工具
This announcement is valuable for educators and AI industry watchers alike. Instead of a generic chatbot, Anthropic designed a safety-first tool specifically for teachers, demonstrating the right approach for AI vertical deployment: solving real pain points rather than showing off technology. The built-in guardrails also set a reference for other AI companies, especially when serving scenarios involving children or teenagers.
86
FeaturedOpenRouter Introduces New Auto Router: Model Routing Powered by Market Wisdom
OpenRouter发布全新Auto Router:用市场智慧优化模型路由
This update is worth attention for anyone using APIs to build AI apps. Instead of guessing or testing model selection, market data now does the heavy lifting. Though sparse on details, the direction is right, especially for teams relying on aggregated model services.
86
FeaturedClaude Code v2.1.211 Release: Multiple Fixes and Improvements
Claude Code v2.1.211 发布:多项修复与改进
As a developer who frequently uses Claude Code for automated coding, I'm particularly interested in the security fixes, especially the permission preview character bypass and auto mode overriding hook decisions—these directly affect the security boundaries during team collaboration. The improvement in background agent reporting also makes long-running tasks more reliable. I recommend all users upgrade as soon as possible.