Просмотр исходного кода

Merge pull request #5501 from Neonsy/add-kimi-k2-5

Adding Kimi K2.5
Mark IJbema 2 недель назад
Родитель
Сommit
da344a7f10
2 измененных файлов с 25 добавлено и 0 удалено
  1. 5 0
      .changeset/fifty-bees-beg.md
  2. 20 0
      packages/types/src/providers/moonshot.ts

+ 5 - 0
.changeset/fifty-bees-beg.md

@@ -0,0 +1,5 @@
+---
+"kilo-code": patch
+---
+
+Adding Kimi K2.5

+ 20 - 0
packages/types/src/providers/moonshot.ts

@@ -6,6 +6,26 @@ export type MoonshotModelId = keyof typeof moonshotModels
 export const moonshotDefaultModelId: MoonshotModelId = "kimi-k2-thinking"
 
 export const moonshotModels = {
+	// kilocode_change start
+	"kimi-k2.5": {
+		maxTokens: 32_000,
+		contextWindow: 262_144, // 256K
+		supportsImages: true, // Native multimodal
+		supportsPromptCache: true,
+		supportsNativeTools: true,
+		defaultToolProtocol: "native",
+		supportsTemperature: false, // Based on API specs
+		defaultTemperature: 1.0, // Default for thinking mode
+		supportsReasoningBudget: true,
+		supportsReasoningEffort: true,
+		preserveReasoning: true,
+		inputPrice: 0.6, // $0.60 per million (cache miss)
+		outputPrice: 3.0, // $3.00 per million
+		cacheWritesPrice: 0,
+		cacheReadsPrice: 0.1, // $0.10 per million (cache hit)
+		description: `Kimi K2.5 is Kimi's most versatile multimodal model with native vision support. Supports both thinking mode (default, temp=1.0) and instant mode (thinking disabled, temp=0.6). Features 256K context, vision understanding, and agent capabilities.`,
+	},
+	// kilocode_change end
 	"kimi-for-coding": {
 		maxTokens: 32_000,
 		contextWindow: 131_072,