Skip to content

Commit 58232d8

Browse files
authored
fix: dont show variants for kimi models that dont support them (#23696)
1 parent cd6415f commit 58232d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
410410
id.includes("glm") ||
411411
id.includes("mistral") ||
412412
id.includes("kimi") ||
413-
id.includes("k2p5") ||
413+
id.includes("k2p") ||
414414
id.includes("qwen") ||
415415
id.includes("big-pickle")
416416
)
@@ -851,11 +851,11 @@ export function options(input: {
851851
}
852852
}
853853

854-
// Enable thinking by default for kimi-k2.5/k2p5 models using anthropic SDK
854+
// Enable thinking by default for kimi models using anthropic SDK
855855
const modelId = input.model.api.id.toLowerCase()
856856
if (
857857
(input.model.api.npm === "@ai-sdk/anthropic" || input.model.api.npm === "@ai-sdk/google-vertex/anthropic") &&
858-
(modelId.includes("k2p5") || modelId.includes("kimi-k2.5") || modelId.includes("kimi-k2p5"))
858+
(modelId.includes("k2p") || modelId.includes("kimi-k2.") || modelId.includes("kimi-k2p"))
859859
) {
860860
result["thinking"] = {
861861
type: "enabled",

0 commit comments

Comments
 (0)