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
Files Affected
src/agents/provider-capabilities.ts
- Potentially
src/agents/model-selection.ts for 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
Bug type
Regression (worked before, now fails)
Summary
Summary
The fix from #40008 (commit d59eb6d) fixes tool routing for
kimi-codingbut not forollama/kimi-k2.5:cloudor other Kimi variants accessed through different providers.Current Behavior
kimi-codingk2p5anthropic-messagesnvidia-nimmoonshotai/kimi-k2.5openai-completionsollama(cloud)kimi-k2.5:cloudopenai-completionsRoot Cause
Both
nvidia-nimandollamaproviders useopenai-completionsformat. 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
Files Affected
src/agents/provider-capabilities.tssrc/agents/model-selection.tsfor model detectioSteps to reproduce
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