Skip to content

[Bug]:fix(ollama): kimi-k2.5:cloud tool routing fails - extend fix to all Kimi variants #41519

@dingoclaw

Description

@dingoclaw

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

  1. switch to ollama/kimi 2.5 model.
  2. try "check tools health". tools will fail.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions