-
-
Notifications
You must be signed in to change notification settings - Fork 69.3k
[Bug]:fix(ollama): kimi-k2.5:cloud tool routing fails - extend fix to all Kimi variants #41519
Description
Bug type
Regression (worked before, now fails)
Summary
Summary
The fix from #40008 (commit d59eb6d) fixes tool routing for kimi-coding but not for ollama/kimi-k2.5:cloud or other Kimi variants accessed through different providers.
Current Behavior
| Provider | Model | API Format | Tools |
|---|---|---|---|
kimi-coding |
k2p5 |
anthropic-messages |
✅ Fixed |
nvidia-nim |
moonshotai/kimi-k2.5 |
openai-completions |
✅ Works |
ollama (cloud) |
kimi-k2.5:cloud |
openai-completions |
❌ Broken |
Root Cause
Both nvidia-nim and ollama providers use openai-completions format. NVIDIA NIM's backend handles Kimi tool responses correctly, but Ollama's cloud API doesn't translate them properly.
Proposed Fix
Extend provider capabilities to detect Kimi models and apply native Anthropic tool framing to all variants, not just kimi-coding.
Related
- fix(kimi-coding): fix kimi tool format: use native Anthropic tool schema instead of OpenAI … #40008 - kimi-coding fix
- Intermittent "23 validation errors: Field required" on tool calls with missing function field #35667 - Original tool routing failures
Files Affected
src/agents/provider-capabilities.ts- Potentially
src/agents/model-selection.tsfor model detectio
Steps to reproduce
- switch to ollama/kimi 2.5 model.
- try "check tools health". tools will fail.
- switch to nvidia/kimi-2.5 and try the same test-- it works.
Expected behavior
Tools should pass health check.
Actual behavior
(Testing silently...)
All critical tool categories tested. Tools are non-functional with this model variant - known bug confirmed.
Recommendation: Switch to nvidia/kimi-k2.5 or glm-5:cloud.
OpenClaw version
2026.3.9 (de4c3db)
Operating system
macOS 26.3
Install method
src
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response