Skip to content

Openrouter Kimi K2.6 requires requiresReasoningContentOnAssistantMessages: true for compat #5309

@madeleineostoja

Description

@madeleineostoja

What happened?

Another day another Kimi + Openrouter issue. The previous fix for developer vs system messages resolved one bug with using Kimi via Openrouter on Pi, but uncovered another.

When doing any thinking, Kimi 2.6 now throws the following error:

thinking is enabled but reasoning_content is missing in assistant tool call message

Setting the following in models.json fixes the issue

"compat": {
  "requiresReasoningContentOnAssistantMessages": true
}

Steps to reproduce

  1. Setup Kimi K2.6 via openrouter (going direct to Moonshot provider)
  2. Set any thinking level other than "off"
  3. Get it to think
  4. See error

Expected behavior

Kimi K2.6 via Openrouter should be able to think in Pi

Version

0.78.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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