[PR #11918] fix: exclude k2p5 from reasoning variants #13984

Closed
opened 2026-02-16 18:18:48 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11918

State: closed
Merged: Yes


Summary

  • Add k2p5 to the exclusion list in variants() function to prevent Kimi K2.5 from incorrectly getting high/max thinking variants

Details

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 and incorrectly receive thinking variants support.

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

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

Fixes #11917

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11918 **State:** closed **Merged:** Yes --- ## Summary - Add `k2p5` to the exclusion list in `variants()` function to prevent Kimi K2.5 from incorrectly getting `high`/`max` thinking variants ## Details 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 and incorrectly receive thinking variants support. **Confirmed with Moonshot official staff: Kimi-K2.5 does NOT support thinking budget configuration.** This is a temporary workaround. The correct solution is to fix the model ID in `models.dev` data to use `kimi-k2.5` instead of `k2p5`. Fixes #11917
yindo added the pull-request label 2026-02-16 18:18:48 -05:00
yindo closed this issue 2026-02-16 18:18:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13984