diff --git a/README.md b/README.md index 5120fa7d..06f08d35 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ irm https://cdn.link-ai.tech/code/cow/run.ps1 | iex 项目支持国内外主流厂商的模型接口,可选模型及配置说明参考:[模型说明](#模型说明)。 -> 注:Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、glm-5-turbo、kimi-k2.5、qwen3.5-plus、claude-sonnet-4-6、gemini-3.1-pro-preview、gpt-5.4、gpt-5.4-mini +> 注:Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、glm-5-turbo、kimi-k2.6、qwen3.5-plus、claude-sonnet-4-6、gemini-3.1-pro-preview、gpt-5.4、gpt-5.4-mini 同时支持使用 **LinkAI 平台** 接口,支持上述全部模型,并支持知识库、工作流、插件等 Agent 技能,参考 [接口文档](https://docs.link-ai.tech/platform/api)。 @@ -224,7 +224,7 @@ cow install-browser
2. 其他配置 -+ `model`: 模型名称,Agent 模式下推荐使用 `MiniMax-M2.7`、`glm-5-turbo`、`kimi-k2.5`、`qwen3.6-plus`、`claude-sonnet-4-6`、`gemini-3.1-pro-preview`,全部模型名称参考[common/const.py](https://github.com/zhayujie/CowAgent/blob/master/common/const.py)文件 ++ `model`: 模型名称,Agent 模式下推荐使用 `MiniMax-M2.7`、`glm-5-turbo`、`kimi-k2.6`、`qwen3.6-plus`、`claude-sonnet-4-6`、`gemini-3.1-pro-preview`,全部模型名称参考[common/const.py](https://github.com/zhayujie/CowAgent/blob/master/common/const.py)文件 + `character_desc`:普通对话模式下的机器人系统提示词。在 Agent 模式下该配置不生效,由工作空间中的文件内容构成。 + `subscribe_msg`:订阅消息,公众号和企业微信 channel 中请填写,当被订阅时会自动回复, 可使用特殊占位符。目前支持的占位符有{trigger_prefix},在程序中它会自动替换成 bot 的触发词。
@@ -446,24 +446,24 @@ sudo docker logs -f chatgpt-on-wechat ```json { - "model": "kimi-k2.5", + "model": "kimi-k2.6", "moonshot_api_key": "" } ``` - - `model`: 可填写 `kimi-k2.5、kimi-k2、moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k` + - `model`: 可填写 `kimi-k2.6、kimi-k2.5、kimi-k2、moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k` - `moonshot_api_key`: Moonshot 的 API-KEY,在 [控制台](https://platform.moonshot.cn/console/api-keys) 创建 方式二:OpenAI 兼容方式接入,配置如下: ```json { "bot_type": "openai", - "model": "kimi-k2.5", + "model": "kimi-k2.6", "open_ai_api_base": "https://api.moonshot.cn/v1", "open_ai_api_key": "" } ``` - `bot_type`: OpenAI 兼容方式 -- `model`: 可填写 `kimi-k2.5、kimi-k2、moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k` +- `model`: 可填写 `kimi-k2.6、kimi-k2.5、kimi-k2、moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k` - `open_ai_api_base`: Moonshot 的 BASE URL - `open_ai_api_key`: Moonshot 的 API-KEY diff --git a/agent/tools/vision/vision.py b/agent/tools/vision/vision.py index 8a2756c2..241dc8c8 100644 --- a/agent/tools/vision/vision.py +++ b/agent/tools/vision/vision.py @@ -43,7 +43,7 @@ _MAIN_MODEL_PROVIDER_NAME = "MainModel" # Auto-discovered as fallback vision providers when their API key is configured. # OpenAI and LinkAI are handled separately (raw HTTP providers), so not listed here. _DISCOVERABLE_MODELS = [ - ("moonshot_api_key", const.MOONSHOT, const.KIMI_K2_5, "Moonshot"), + ("moonshot_api_key", const.MOONSHOT, const.KIMI_K2_6, "Moonshot"), ("ark_api_key", const.DOUBAO, const.DOUBAO_SEED_2_PRO, "Doubao"), ("dashscope_api_key", const.QWEN_DASHSCOPE, const.QWEN36_PLUS, "DashScope"), ("claude_api_key", const.CLAUDEAPI, const.CLAUDE_4_6_SONNET, "Claude"), diff --git a/channel/web/web_channel.py b/channel/web/web_channel.py index 753e2d4c..ce60ac62 100644 --- a/channel/web/web_channel.py +++ b/channel/web/web_channel.py @@ -758,7 +758,7 @@ class ConfigHandler: const.MINIMAX_M2_7_HIGHSPEED, const.MINIMAX_M2_7, const.MINIMAX_M2_5, const.MINIMAX_M2_1, const.MINIMAX_M2_1_LIGHTNING, const.GLM_5_TURBO, const.GLM_5, const.GLM_4_7, const.QWEN36_PLUS, const.QWEN35_PLUS, const.QWEN3_MAX, - const.KIMI_K2_5, const.KIMI_K2, + const.KIMI_K2_6, const.KIMI_K2_5, const.KIMI_K2, const.DOUBAO_SEED_2_PRO, const.DOUBAO_SEED_2_CODE, const.CLAUDE_4_6_SONNET, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_OPUS, const.CLAUDE_4_5_SONNET, const.GEMINI_31_FLASH_LITE_PRE, const.GEMINI_31_PRO_PRE, const.GEMINI_3_FLASH_PRE, @@ -793,7 +793,7 @@ class ConfigHandler: "api_key_field": "moonshot_api_key", "api_base_key": "moonshot_base_url", "api_base_default": "https://api.moonshot.cn/v1", - "models": [const.KIMI_K2_5, const.KIMI_K2], + "models": [const.KIMI_K2_6, const.KIMI_K2_5, const.KIMI_K2], }), ("doubao", { "label": "豆包", diff --git a/common/const.py b/common/const.py index 460f68c6..1ae56737 100644 --- a/common/const.py +++ b/common/const.py @@ -119,6 +119,7 @@ GLM_4_7 = "glm-4.7" # 智谱 GLM-4.7 - Agent推荐模型 MOONSHOT = "moonshot" KIMI_K2 = "kimi-k2" KIMI_K2_5 = "kimi-k2.5" +KIMI_K2_6 = "kimi-k2.6" # Kimi K2.6 - Agent recommended model (default) # Doubao (Volcengine Ark) DOUBAO = "doubao" @@ -186,7 +187,7 @@ MODEL_LIST = [ # Kimi MOONSHOT, "moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k", - KIMI_K2, KIMI_K2_5, + KIMI_K2_6, KIMI_K2_5, KIMI_K2, # Doubao DOUBAO, DOUBAO_SEED_2_CODE, DOUBAO_SEED_2_PRO, DOUBAO_SEED_2_LITE, DOUBAO_SEED_2_MINI, diff --git a/docs/en/README.md b/docs/en/README.md index deda48d7..f7697655 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -166,7 +166,7 @@ Supports mainstream model providers. Recommended models for Agent mode: | --- | --- | | MiniMax | `MiniMax-M2.7` | | GLM | `glm-5-turbo` | -| Kimi | `kimi-k2.5` | +| Kimi | `kimi-k2.6` | | Doubao | `doubao-seed-2-0-code-preview-260215` | | Qwen | `qwen3.6-plus` | | Claude | `claude-sonnet-4-6` | diff --git a/docs/en/models/index.mdx b/docs/en/models/index.mdx index f6e86f32..5a2819e7 100644 --- a/docs/en/models/index.mdx +++ b/docs/en/models/index.mdx @@ -6,7 +6,7 @@ description: Supported models and recommended choices for CowAgent CowAgent supports mainstream LLMs from domestic and international providers. Model interfaces are implemented in the project's `models/` directory. - For Agent mode, the following models are recommended based on quality and cost: MiniMax-M2.7, glm-5-turbo, kimi-k2.5, qwen3.6-plus, claude-sonnet-4-6, gemini-3.1-pro-preview + For Agent mode, the following models are recommended based on quality and cost: MiniMax-M2.7, glm-5-turbo, kimi-k2.6, qwen3.6-plus, claude-sonnet-4-6, gemini-3.1-pro-preview ## Configuration @@ -28,7 +28,7 @@ You can also use the [LinkAI](https://link-ai.tech) platform interface to flexib qwen3.6-plus, qwen3-max and more - kimi-k2.5, kimi-k2 and more + kimi-k2.6, kimi-k2.5, kimi-k2 and more doubao-seed series models diff --git a/docs/en/models/kimi.mdx b/docs/en/models/kimi.mdx index f843bb46..f882fa72 100644 --- a/docs/en/models/kimi.mdx +++ b/docs/en/models/kimi.mdx @@ -5,14 +5,14 @@ description: Kimi (Moonshot) model configuration ```json { - "model": "kimi-k2.5", + "model": "kimi-k2.6", "moonshot_api_key": "YOUR_API_KEY" } ``` | Parameter | Description | | --- | --- | -| `model` | Options include `kimi-k2.5`, `kimi-k2`, `moonshot-v1-8k`, `moonshot-v1-32k`, `moonshot-v1-128k` | +| `model` | Options include `kimi-k2.6`, `kimi-k2.5`, `kimi-k2`, `moonshot-v1-8k`, `moonshot-v1-32k`, `moonshot-v1-128k` | | `moonshot_api_key` | Create at [Moonshot Console](https://platform.moonshot.cn/console/api-keys) | OpenAI-compatible configuration is also supported: @@ -20,7 +20,7 @@ OpenAI-compatible configuration is also supported: ```json { "bot_type": "openai", - "model": "kimi-k2.5", + "model": "kimi-k2.6", "open_ai_api_base": "https://api.moonshot.cn/v1", "open_ai_api_key": "YOUR_API_KEY" } diff --git a/docs/en/tools/vision.mdx b/docs/en/tools/vision.mdx index cebecbea..01e36db2 100644 --- a/docs/en/tools/vision.mdx +++ b/docs/en/tools/vision.mdx @@ -27,7 +27,7 @@ If the current provider fails, the tool automatically tries the next one until i | Claude | Main model | Anthropic native image format | | Gemini | Main model | inlineData format | | Doubao | Main model | doubao-seed-2-0 series natively supported | -| Kimi (Moonshot) | Main model | kimi-k2.5 natively supported | +| Kimi (Moonshot) | Main model | kimi-k2.6, kimi-k2.5 natively supported | | ZhipuAI | glm-5v-turbo | Always uses dedicated vision model | | MiniMax | MiniMax-Text-01 | Always uses dedicated vision model | diff --git a/docs/ja/README.md b/docs/ja/README.md index 41a875c5..5efd264e 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -166,7 +166,7 @@ sudo docker logs -f chatgpt-on-wechat | --- | --- | | MiniMax | `MiniMax-M2.7` | | GLM | `glm-5-turbo` | -| Kimi | `kimi-k2.5` | +| Kimi | `kimi-k2.6` | | Doubao | `doubao-seed-2-0-code-preview-260215` | | Qwen | `qwen3.6-plus` | | Claude | `claude-sonnet-4-6` | diff --git a/docs/ja/models/index.mdx b/docs/ja/models/index.mdx index b24a8966..966604c6 100644 --- a/docs/ja/models/index.mdx +++ b/docs/ja/models/index.mdx @@ -6,7 +6,7 @@ description: CowAgentがサポートするモデルとおすすめの選択肢 CowAgentは国内外の主要なLLMをサポートしています。モデルインターフェースはプロジェクトの`models/`ディレクトリに実装されています。 - Agent モードでは、品質とコストのバランスから以下のモデルをおすすめします: MiniMax-M2.7、glm-5-turbo、kimi-k2.5、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview + Agent モードでは、品質とコストのバランスから以下のモデルをおすすめします: MiniMax-M2.7、glm-5-turbo、kimi-k2.6、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview ## 設定 @@ -28,7 +28,7 @@ CowAgentは国内外の主要なLLMをサポートしています。モデルイ qwen3.6-plus、qwen3-maxなど - kimi-k2.5、kimi-k2など + kimi-k2.6、kimi-k2.5、kimi-k2など doubao-seedシリーズモデル diff --git a/docs/ja/models/kimi.mdx b/docs/ja/models/kimi.mdx index 77f727e4..fb80153c 100644 --- a/docs/ja/models/kimi.mdx +++ b/docs/ja/models/kimi.mdx @@ -5,14 +5,14 @@ description: Kimi (Moonshot) モデルの設定 ```json { - "model": "kimi-k2.5", + "model": "kimi-k2.6", "moonshot_api_key": "YOUR_API_KEY" } ``` | パラメータ | 説明 | | --- | --- | -| `model` | `kimi-k2.5`、`kimi-k2`、`moonshot-v1-8k`、`moonshot-v1-32k`、`moonshot-v1-128k`から選択可能 | +| `model` | `kimi-k2.6`、`kimi-k2.5`、`kimi-k2`、`moonshot-v1-8k`、`moonshot-v1-32k`、`moonshot-v1-128k`から選択可能 | | `moonshot_api_key` | [Moonshot Console](https://platform.moonshot.cn/console/api-keys)で作成 | OpenAI互換の設定もサポートしています: @@ -20,7 +20,7 @@ OpenAI互換の設定もサポートしています: ```json { "bot_type": "openai", - "model": "kimi-k2.5", + "model": "kimi-k2.6", "open_ai_api_base": "https://api.moonshot.cn/v1", "open_ai_api_key": "YOUR_API_KEY" } diff --git a/docs/ja/tools/vision.mdx b/docs/ja/tools/vision.mdx index f34bf58a..95e28a22 100644 --- a/docs/ja/tools/vision.mdx +++ b/docs/ja/tools/vision.mdx @@ -27,7 +27,7 @@ Vision ツールは多段階の自動選択+自動フォールバック戦略 | Claude | メインモデル | Anthropic ネイティブ画像形式 | | Gemini | メインモデル | inlineData 形式 | | 豆包 (Doubao) | メインモデル | doubao-seed-2-0 シリーズがネイティブ対応 | -| Kimi (Moonshot) | メインモデル | kimi-k2.5 がネイティブ対応 | +| Kimi (Moonshot) | メインモデル | kimi-k2.6、kimi-k2.5 がネイティブ対応 | | 智谱 AI | glm-5v-turbo | 常にビジョン専用モデルを使用 | | MiniMax | MiniMax-Text-01 | 常にビジョン専用モデルを使用 | diff --git a/docs/models/index.mdx b/docs/models/index.mdx index 930f169e..a10aaeca 100644 --- a/docs/models/index.mdx +++ b/docs/models/index.mdx @@ -6,7 +6,7 @@ description: CowAgent 支持的模型及推荐选择 CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在项目的 `models/` 目录下。 - Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、glm-5-turbo、kimi-k2.5、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview + Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、glm-5-turbo、kimi-k2.6、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview 同时支持使用 [LinkAI](https://link-ai.tech) 平台接口,可灵活切换多种模型,并支持知识库、工作流、插件等 Agent 能力。 @@ -33,7 +33,7 @@ CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在 qwen3.6-plus、qwen3-max 等 - kimi-k2.5、kimi-k2 等 + kimi-k2.6、kimi-k2.5、kimi-k2 等 doubao-seed 系列模型 diff --git a/docs/models/kimi.mdx b/docs/models/kimi.mdx index 6543cbcf..a75cadea 100644 --- a/docs/models/kimi.mdx +++ b/docs/models/kimi.mdx @@ -5,14 +5,14 @@ description: Kimi (Moonshot) 模型配置 ```json { - "model": "kimi-k2.5", + "model": "kimi-k2.6", "moonshot_api_key": "YOUR_API_KEY" } ``` | 参数 | 说明 | | --- | --- | -| `model` | 可填 `kimi-k2.5`、`kimi-k2`、`moonshot-v1-8k`、`moonshot-v1-32k`、`moonshot-v1-128k` | +| `model` | 可填 `kimi-k2.6`、`kimi-k2.5`、`kimi-k2`、`moonshot-v1-8k`、`moonshot-v1-32k`、`moonshot-v1-128k` | | `moonshot_api_key` | 在 [Moonshot 控制台](https://platform.moonshot.cn/console/api-keys) 创建 | 也支持 OpenAI 兼容方式接入: @@ -20,7 +20,7 @@ description: Kimi (Moonshot) 模型配置 ```json { "bot_type": "openai", - "model": "kimi-k2.5", + "model": "kimi-k2.6", "open_ai_api_base": "https://api.moonshot.cn/v1", "open_ai_api_key": "YOUR_API_KEY" } diff --git a/docs/tools/vision.mdx b/docs/tools/vision.mdx index 4e1089e0..69d7255e 100644 --- a/docs/tools/vision.mdx +++ b/docs/tools/vision.mdx @@ -23,7 +23,7 @@ Vision 工具采用多级自动选择 + 自动兜底策略,无需手动配置 | Claude | 使用主模型 | Anthropic 原生图像格式 | | Gemini | 使用主模型 | inlineData 格式 | | 豆包 (Doubao) | 使用主模型 | doubao-seed-2-0 系列原生支持 | -| Kimi (Moonshot) | 使用主模型 | kimi-k2.5 原生支持 | +| Kimi (Moonshot) | 使用主模型 | kimi-k2.6、kimi-k2.5 原生支持 | | 智谱 AI | glm-5v-turbo | 固定使用视觉专用模型 | | MiniMax | MiniMax-Text-01 | 固定使用视觉专用模型 | diff --git a/models/moonshot/moonshot_bot.py b/models/moonshot/moonshot_bot.py index 55698e45..64b01a94 100644 --- a/models/moonshot/moonshot_bot.py +++ b/models/moonshot/moonshot_bot.py @@ -101,8 +101,17 @@ class MoonshotBot(Bot): "Content-Type": "application/json", "Authorization": "Bearer " + self.api_key } - body = args + # Fallback to default args (e.g. when called by session title + # generation which passes only the session). Always copy to avoid + # mutating the shared self.args across calls. + body = dict(args) if args else dict(self.args) body["messages"] = session.messages + # K2.x series enforces fixed temperature/top_p; passing custom values + # makes the API reject the request. Strip them for kimi-k2 family. + model_name = str(body.get("model", "")) + if model_name.startswith("kimi-k2"): + body.pop("temperature", None) + body.pop("top_p", None) res = requests.post( f"{self.base_url}/chat/completions", headers=headers, @@ -153,7 +162,7 @@ class MoonshotBot(Bot): max_tokens: int = 1000) -> dict: """Analyze an image using Moonshot (Kimi) OpenAI-compatible API.""" try: - vision_model = model or self.args.get("model", "kimi-k2.5") + vision_model = model or self.args.get("model", "kimi-k2.6") payload = { "model": vision_model, "max_tokens": max_tokens, diff --git a/run.sh b/run.sh index cfa5d47a..d2a4a73c 100755 --- a/run.sh +++ b/run.sh @@ -311,7 +311,7 @@ select_model() { echo -e "${CYAN}${BOLD}=========================================${NC}" echo -e "${YELLOW}1) MiniMax (MiniMax-M2.7, MiniMax-M2.5, etc.)${NC}" echo -e "${YELLOW}2) Zhipu AI (glm-5-turbo, glm-5, etc.)${NC}" - echo -e "${YELLOW}3) Kimi (kimi-k2.5, kimi-k2, etc.)${NC}" + echo -e "${YELLOW}3) Kimi (kimi-k2.6, kimi-k2.5, kimi-k2, etc.)${NC}" echo -e "${YELLOW}4) Doubao (doubao-seed-2-0-code-preview-260215, etc.)${NC}" echo -e "${YELLOW}5) Qwen (qwen3.6-plus, qwen3.5-plus, qwen3-max, qwq-plus, etc.)${NC}" echo -e "${YELLOW}6) Claude (claude-sonnet-4-6, claude-opus-4-7, claude-opus-4-6, etc.)${NC}" @@ -358,7 +358,7 @@ configure_model() { case "$model_choice" in 1) read_model_config "MiniMax" "MiniMax-M2.7" "MINIMAX_KEY" ;; 2) read_model_config "Zhipu AI" "glm-5-turbo" "ZHIPU_KEY" ;; - 3) read_model_config "Kimi (Moonshot)" "kimi-k2.5" "MOONSHOT_KEY" ;; + 3) read_model_config "Kimi (Moonshot)" "kimi-k2.6" "MOONSHOT_KEY" ;; 4) read_model_config "Doubao (Volcengine Ark)" "doubao-seed-2-0-code-preview-260215" "ARK_KEY" ;; 5) read_model_config "Qwen (DashScope)" "qwen3.6-plus" "DASHSCOPE_KEY" ;; 6) diff --git a/scripts/run.ps1 b/scripts/run.ps1 index a9cdc6f6..28805b59 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -171,7 +171,7 @@ function Install-Dependencies { $ModelChoices = @{ "1" = @{ Provider = "MiniMax"; Default = "MiniMax-M2.7"; Key = "MINIMAX_KEY" } "2" = @{ Provider = "Zhipu AI"; Default = "glm-5-turbo"; Key = "ZHIPU_KEY" } - "3" = @{ Provider = "Kimi (Moonshot)"; Default = "kimi-k2.5"; Key = "MOONSHOT_KEY" } + "3" = @{ Provider = "Kimi (Moonshot)"; Default = "kimi-k2.6"; Key = "MOONSHOT_KEY" } "4" = @{ Provider = "Doubao (Volcengine Ark)"; Default = "doubao-seed-2-0-code-preview-260215"; Key = "ARK_KEY" } "5" = @{ Provider = "Qwen (DashScope)"; Default = "qwen3.6-plus"; Key = "DASHSCOPE_KEY" } "6" = @{ Provider = "Claude"; Default = "claude-sonnet-4-6"; Key = "CLAUDE_KEY"; Base = "https://api.anthropic.com/v1" } @@ -186,7 +186,7 @@ function Select-Model { Write-Info "=========================================" Write-Host "1) MiniMax (MiniMax-M2.7, MiniMax-M2.5, etc.)" Write-Host "2) Zhipu AI (glm-5-turbo, glm-5, etc.)" - Write-Host "3) Kimi (kimi-k2.5, kimi-k2, etc.)" + Write-Host "3) Kimi (kimi-k2.6, kimi-k2.5, kimi-k2, etc.)" Write-Host "4) Doubao (doubao-seed-2-0-code-preview-260215, etc.)" Write-Host "5) Qwen (qwen3.6-plus, qwen3.5-plus, qwen3-max, qwq-plus, etc.)" Write-Host "6) Claude (claude-sonnet-4-6, claude-opus-4-6, etc.)"