Skip to content

Kimi K2.5 model ID 'k2p5' bypasses reasoning variants exclusion #11917

Closed

Description

@neavo

Problem

The Kimi For Coding provider uses k2p5 as the model ID for Kimi K2.5, which does not contain the string "kimi". This causes it to bypass the exclusion logic in transform.ts and incorrectly receive high/max thinking variants support.

Confirmed with Moonshot official staff: Kimi-K2.5 does NOT support thinking budget configuration.

Current behavior

In packages/opencode/src/provider/transform.ts, the variants() function excludes models containing "kimi" from generating thinking variants:

if (
  id.includes("deepseek") ||
  id.includes("minimax") ||
  id.includes("glm") ||
  id.includes("mistral") ||
  id.includes("kimi")
)
  return {}

However, the Kimi For Coding provider in models.dev uses k2p5 as the model ID:

"kimi-for-coding": {
  "npm": "@ai-sdk/anthropic",
  "models": {
    "k2p5": {
      "id": "k2p5",
      "name": "Kimi K2.5",
      ...
    }
  }
}

Since k2p5 does not contain "kimi", it bypasses the exclusion and incorrectly gets high/max variants.

Expected behavior

Kimi K2.5 should not have high/max thinking variants, consistent with other Kimi models.

Root cause

The model ID in models.dev data should use kimi-k2.5 instead of k2p5 for consistency.

Suggested fix

The correct solution is to fix the model ID in models.dev data to use kimi-k2.5 instead of k2p5.

A temporary workaround has been added to exclude k2p5 explicitly, but this should be removed once the upstream data is corrected.

Activity

  1. github-actions commented on Feb 3, 2026

    @github-actions
    Contributor

    This issue might be a duplicate or related to existing issues. Please check:

    Feel free to ignore if your issue is specifically about the model ID naming convention in models.dev rather than the functional failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions