Ollama v0.40.7:修复流式响应乱序、支持自动推测解码与新增渲染器字段
v0.40.7
推荐理由
本次更新修复了流式响应中严重的事件乱序与重复问题,直接影响 AI Agent 调用的可靠性;同时引入的自动推测解码能显著提升推理速度。建议正在运行复杂多模型工作流的开发者尽快升级至 v0.40.7。
What's Changed
更新内容
- pplx-decider is a 27B decision model from Perplexity, fine-tuned from
- Qwen3.8-27B
- Continuing an OpenAI-compatible Responses conversation no longer fails when switching between models with and without
- thinking, or when the history contains another provider's compaction items
- Fixed streaming Responses requests where client tool calls (e.g. Codex with web search) could emit before open
- reasoning items, producing misordered/duplicate tool call events
- Requests routed to remote models are now cancelled on ollama.com when the client disconnects, instead of continuing
- to run
- ollama show now reports which renderer and parser a model uses and where its chat template comes from; the API
- exposes the same values in new renderer, parser, and template_source fields
- More draft models now work with speculative decoding: llama-server infers the draft type automatically instead of
- requiring Ollama to identify it
- ollama launch claude now clamps CLAUDE_CODE_AUTO_COMPACT_WINDOW to Claude Code's supported range, avoiding a
- "window too large" warning
- Updated llama.cpp and MLX
- pplx-decider 是 Perplexity 推出的一个 27B 决策模型,基于
- Qwen3.8-27B
- 在兼容 OpenAI 的 Responses 对话中,切换使用带和不带
- 思考功能的模型时,或当历史记录包含其他提供商的压缩项时,不再失败
- 修复了流式 Responses 请求中的问题:客户端工具调用(例如带有网络搜索的 Codex)可能在开放
- 推理项之前发出,导致工具调用事件顺序错乱/重复
- 路由到远程模型的请求现在会在客户端断开连接时于 ollama.com 上取消,而不是继续
- 运行
- ollama show 现在会报告模型使用的渲染器和解析器以及其聊天模板的来源;API
- 在新的 renderer、parser 和 template_source 字段中暴露相同的值
- 更多草稿模型现支持推测解码:llama-server 会自动推断草稿类型,而无需
- Ollama 进行识别
- ollama launch claude 现在会将 CLAUDE_CODE_AUTO_COMPACT_WINDOW 限制在 Claude Code 支持的范围内,避免
- "窗口过大"警告
- 更新了 llama.cpp 和 MLX
Full Changelog: v0.40.6...v0.40.7
完整更改日志:v0.40.6...v0.40.7
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力