From fce4bb8be1e6511fa5af281a2c1d708c9c3997c4 Mon Sep 17 00:00:00 2001 From: JM Marquez <70137651+Inovvia@users.noreply.github.com> Date: Wed, 28 Jan 2026 09:28:23 +0400 Subject: [PATCH] Replace default model to kimi k2.5 --- docs/concepts/model-providers.md | 6 +++--- docs/gateway/configuration.md | 17 ++++++++++++++--- docs/providers/moonshot.md | 14 ++++++++++++-- src/agents/models-config.providers.ts | 2 +- 4 files changed, 30 insertions(+), 9 deletions(-) diff --git a/docs/concepts/model-providers.md b/docs/concepts/model-providers.md index 9dbb984fc..79d86b766 100644 --- a/docs/concepts/model-providers.md +++ b/docs/concepts/model-providers.md @@ -164,13 +164,13 @@ Kimi Code uses a dedicated endpoint and key (separate from Moonshot): - Provider: `kimi-code` - Auth: `KIMICODE_API_KEY` -- Example model: `kimi-code/kimi-for-coding` +- Example model: `kimi-code/kimi-k2.5` ```json5 { env: { KIMICODE_API_KEY: "sk-..." }, agents: { - defaults: { model: { primary: "kimi-code/kimi-for-coding" } } + defaults: { model: { primary: "kimi-code/kimi-k2.5" } } }, models: { mode: "merge", @@ -179,7 +179,7 @@ Kimi Code uses a dedicated endpoint and key (separate from Moonshot): baseUrl: "https://api.kimi.com/coding/v1", apiKey: "${KIMICODE_API_KEY}", api: "openai-completions", - models: [{ id: "kimi-for-coding", name: "Kimi For Coding" }] + models: [{ id: "kimi-k2.5", name: "Kimi K2.5" },{ id: "kimi-for-coding", name: "Kimi For Coding" }] } } } diff --git a/docs/gateway/configuration.md b/docs/gateway/configuration.md index 15261c809..30c02b8f0 100644 --- a/docs/gateway/configuration.md +++ b/docs/gateway/configuration.md @@ -2438,8 +2438,8 @@ Use Kimi Code's dedicated OpenAI-compatible endpoint (separate from Moonshot): env: { KIMICODE_API_KEY: "sk-..." }, agents: { defaults: { - model: { primary: "kimi-code/kimi-for-coding" }, - models: { "kimi-code/kimi-for-coding": { alias: "Kimi Code" } } + model: { primary: "kimi-code/kimi-k2.5" }, + models: {"kimi-code/kimi-k2.5": { alias: "Kimi K2.5" }, "kimi-code/kimi-for-coding": { alias: "Kimi Code" } } } }, models: { @@ -2450,6 +2450,17 @@ Use Kimi Code's dedicated OpenAI-compatible endpoint (separate from Moonshot): apiKey: "${KIMICODE_API_KEY}", api: "openai-completions", models: [ + { + id: "kimi-k2.5", + name: "Kimi K2.5", + reasoning: true, + input: ["text"], + cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, + contextWindow: 262144, + maxTokens: 32768, + headers: { "User-Agent": "KimiCLI/0.77" }, + compat: { supportsDeveloperRole: false } + }, { id: "kimi-for-coding", name: "Kimi For Coding", @@ -2470,7 +2481,7 @@ Use Kimi Code's dedicated OpenAI-compatible endpoint (separate from Moonshot): Notes: - Set `KIMICODE_API_KEY` in the environment or use `moltbot onboard --auth-choice kimi-code-api-key`. -- Model ref: `kimi-code/kimi-for-coding`. +- Model ref: `kimi-code/kimi-k2.5`. ### Synthetic (Anthropic-compatible) diff --git a/docs/providers/moonshot.md b/docs/providers/moonshot.md index a1f2d18ad..57f1d4a1b 100644 --- a/docs/providers/moonshot.md +++ b/docs/providers/moonshot.md @@ -121,9 +121,10 @@ Note: Moonshot and Kimi Code are separate providers. Keys are not interchangeabl env: { KIMICODE_API_KEY: "sk-..." }, agents: { defaults: { - model: { primary: "kimi-code/kimi-for-coding" }, + model: { primary: "kimi-code/kimi-k2.5" }, models: { - "kimi-code/kimi-for-coding": { alias: "Kimi Code" } + "kimi-code/kimi-k2.5": { alias: "Kimi K2.5" }, + "kimi-code/kimi-for-coding": { alias: "Kimi Code" } } } }, @@ -135,6 +136,15 @@ Note: Moonshot and Kimi Code are separate providers. Keys are not interchangeabl apiKey: "${KIMICODE_API_KEY}", api: "openai-completions", models: [ + { + id: "kimi-k2.5", + name: "Kimi K2.5", + reasoning: false, + input: ["text"], + cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, + contextWindow: 256000, + maxTokens: 8192 + }, { id: "kimi-for-coding", name: "Kimi For Coding", diff --git a/src/agents/models-config.providers.ts b/src/agents/models-config.providers.ts index a176dac8a..4dc478c3d 100644 --- a/src/agents/models-config.providers.ts +++ b/src/agents/models-config.providers.ts @@ -41,7 +41,7 @@ const MOONSHOT_DEFAULT_COST = { cacheWrite: 0, }; const KIMI_CODE_BASE_URL = "https://api.kimi.com/coding/v1"; -const KIMI_CODE_MODEL_ID = "kimi-for-coding"; +const KIMI_CODE_MODEL_ID = "kimi-k2.5"; const KIMI_CODE_CONTEXT_WINDOW = 262144; const KIMI_CODE_MAX_TOKENS = 32768; const KIMI_CODE_HEADERS = { "User-Agent": "KimiCLI/0.77" } as const;