diff --git a/README.md b/README.md index 06f08d35..311064cd 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.6、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.1、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.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)文件 ++ `model`: 模型名称,Agent 模式下推荐使用 `MiniMax-M2.7`、`glm-5.1`、`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 的触发词。
@@ -388,24 +388,24 @@ sudo docker logs -f chatgpt-on-wechat ```json { - "model": "glm-5-turbo", + "model": "glm-5.1", "zhipu_ai_api_key": "" } ``` - - `model`: 可填 `glm-5-turbo、glm-5、glm-4.7、glm-4-plus、glm-4-flash、glm-4-air、glm-4-airx、glm-4-long` 等, 参考 [glm 系列模型编码](https://bigmodel.cn/dev/api/normal-model/glm-4) + - `model`: 可填 `glm-5.1、glm-5-turbo、glm-5、glm-4.7、glm-4-plus、glm-4-flash、glm-4-air、glm-4-airx、glm-4-long` 等, 参考 [glm 系列模型编码](https://bigmodel.cn/dev/api/normal-model/glm-4) - `zhipu_ai_api_key`: 智谱AI 平台的 API KEY,在 [控制台](https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys) 创建 方式二:OpenAI 兼容方式接入,配置如下: ```json { "bot_type": "openai", - "model": "glm-5-turbo", + "model": "glm-5.1", "open_ai_api_base": "https://open.bigmodel.cn/api/paas/v4", "open_ai_api_key": "" } ``` - `bot_type`: OpenAI 兼容方式 -- `model`: 可填 `glm-5-turbo、glm-5、glm-4.7、glm-4-plus、glm-4-flash、glm-4-air、glm-4-airx、glm-4-long` 等 +- `model`: 可填 `glm-5.1、glm-5-turbo、glm-5、glm-4.7、glm-4-plus、glm-4-flash、glm-4-air、glm-4-airx、glm-4-long` 等 - `open_ai_api_base`: 智谱AI 平台的 BASE URL - `open_ai_api_key`: 智谱AI 平台的 API KEY diff --git a/channel/web/web_channel.py b/channel/web/web_channel.py index c19beb9b..2c21ceb9 100644 --- a/channel/web/web_channel.py +++ b/channel/web/web_channel.py @@ -771,7 +771,7 @@ class ConfigHandler: _RECOMMENDED_MODELS = [ 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.GLM_5_1, const.GLM_5_TURBO, const.GLM_5, const.GLM_4_7, const.QWEN36_PLUS, const.QWEN35_PLUS, const.QWEN3_MAX, const.KIMI_K2_6, const.KIMI_K2_5, const.KIMI_K2, const.DOUBAO_SEED_2_PRO, const.DOUBAO_SEED_2_CODE, @@ -794,7 +794,7 @@ class ConfigHandler: "api_key_field": "zhipu_ai_api_key", "api_base_key": "zhipu_ai_api_base", "api_base_default": "https://open.bigmodel.cn/api/paas/v4", - "models": [const.GLM_5_TURBO, const.GLM_5, const.GLM_4_7], + "models": [const.GLM_5_1, const.GLM_5_TURBO, const.GLM_5, const.GLM_4_7], }), ("dashscope", { "label": "通义千问", diff --git a/common/const.py b/common/const.py index 1ae56737..94b7c955 100644 --- a/common/const.py +++ b/common/const.py @@ -103,7 +103,8 @@ MINIMAX_M2 = "MiniMax-M2" # MiniMax M2 MINIMAX_ABAB6_5 = "abab6.5-chat" # MiniMax abab6.5 # GLM (智谱AI) -GLM_5_TURBO = "glm-5-turbo" # 智谱 GLM-5-Turbo - Latest +GLM_5_1 = "glm-5.1" # 智谱 GLM-5.1 - Agent recommended model (default) +GLM_5_TURBO = "glm-5-turbo" # 智谱 GLM-5-Turbo GLM_5 = "glm-5" # 智谱 GLM-5 GLM_4 = "glm-4" GLM_4_PLUS = "glm-4-plus" @@ -182,7 +183,7 @@ MODEL_LIST = [ MiniMax, MINIMAX_M2_7, MINIMAX_M2_7_HIGHSPEED, MINIMAX_M2_5, MINIMAX_M2_1, MINIMAX_M2_1_LIGHTNING, MINIMAX_M2, MINIMAX_ABAB6_5, # GLM - ZHIPU_AI, GLM_5_TURBO, GLM_5, GLM_4, GLM_4_PLUS, GLM_4_flash, GLM_4_LONG, GLM_4_ALLTOOLS, + ZHIPU_AI, GLM_5_1, GLM_5_TURBO, GLM_5, GLM_4, GLM_4_PLUS, GLM_4_flash, GLM_4_LONG, GLM_4_ALLTOOLS, GLM_4_0520, GLM_4_AIR, GLM_4_AIRX, GLM_4_7, # Kimi diff --git a/docs/en/README.md b/docs/en/README.md index f7697655..c1c59f97 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -165,7 +165,7 @@ Supports mainstream model providers. Recommended models for Agent mode: | Provider | Recommended Model | | --- | --- | | MiniMax | `MiniMax-M2.7` | -| GLM | `glm-5-turbo` | +| GLM | `glm-5.1` | | Kimi | `kimi-k2.6` | | Doubao | `doubao-seed-2-0-code-preview-260215` | | Qwen | `qwen3.6-plus` | diff --git a/docs/en/models/glm.mdx b/docs/en/models/glm.mdx index cfa2a27c..5f236f2b 100644 --- a/docs/en/models/glm.mdx +++ b/docs/en/models/glm.mdx @@ -5,14 +5,14 @@ description: Zhipu AI GLM model configuration ```json { - "model": "glm-5-turbo", + "model": "glm-5.1", "zhipu_ai_api_key": "YOUR_API_KEY" } ``` | Parameter | Description | | --- | --- | -| `model` | Options include `glm-5-turbo`, `glm-5`, `glm-4.7`, `glm-4-plus`, `glm-4-flash`, `glm-4-air`, etc. See [model codes](https://bigmodel.cn/dev/api/normal-model/glm-4) | +| `model` | Options include `glm-5.1`, `glm-5-turbo`, `glm-5`, `glm-4.7`, `glm-4-plus`, `glm-4-flash`, `glm-4-air`, etc. See [model codes](https://bigmodel.cn/dev/api/normal-model/glm-4) | | `zhipu_ai_api_key` | Create at [Zhipu AI Console](https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys) | OpenAI-compatible configuration is also supported: @@ -20,7 +20,7 @@ OpenAI-compatible configuration is also supported: ```json { "bot_type": "openai", - "model": "glm-5-turbo", + "model": "glm-5.1", "open_ai_api_base": "https://open.bigmodel.cn/api/paas/v4", "open_ai_api_key": "YOUR_API_KEY" } diff --git a/docs/en/models/index.mdx b/docs/en/models/index.mdx index 5a2819e7..dab4f434 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.6, 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.1, kimi-k2.6, qwen3.6-plus, claude-sonnet-4-6, gemini-3.1-pro-preview ## Configuration @@ -22,7 +22,7 @@ You can also use the [LinkAI](https://link-ai.tech) platform interface to flexib MiniMax-M2.7 and other series models - glm-5-turbo, glm-5 and other series models + glm-5.1, glm-5-turbo, glm-5 and other series models qwen3.6-plus, qwen3-max and more diff --git a/docs/ja/README.md b/docs/ja/README.md index 5efd264e..ad01cdd7 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -165,7 +165,7 @@ sudo docker logs -f chatgpt-on-wechat | プロバイダー | 推奨モデル | | --- | --- | | MiniMax | `MiniMax-M2.7` | -| GLM | `glm-5-turbo` | +| GLM | `glm-5.1` | | Kimi | `kimi-k2.6` | | Doubao | `doubao-seed-2-0-code-preview-260215` | | Qwen | `qwen3.6-plus` | diff --git a/docs/ja/models/glm.mdx b/docs/ja/models/glm.mdx index 3309fcf3..9455e56b 100644 --- a/docs/ja/models/glm.mdx +++ b/docs/ja/models/glm.mdx @@ -5,14 +5,14 @@ description: 智谱AI GLMモデルの設定 ```json { - "model": "glm-5-turbo", + "model": "glm-5.1", "zhipu_ai_api_key": "YOUR_API_KEY" } ``` | パラメータ | 説明 | | --- | --- | -| `model` | `glm-5-turbo`、`glm-5`、`glm-4.7`、`glm-4-plus`、`glm-4-flash`、`glm-4-air`などから選択可能。[モデルコード](https://bigmodel.cn/dev/api/normal-model/glm-4)を参照 | +| `model` | `glm-5.1`、`glm-5-turbo`、`glm-5`、`glm-4.7`、`glm-4-plus`、`glm-4-flash`、`glm-4-air`などから選択可能。[モデルコード](https://bigmodel.cn/dev/api/normal-model/glm-4)を参照 | | `zhipu_ai_api_key` | [智谱AI Console](https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys)で作成 | OpenAI互換の設定もサポートしています: @@ -20,7 +20,7 @@ OpenAI互換の設定もサポートしています: ```json { "bot_type": "openai", - "model": "glm-5-turbo", + "model": "glm-5.1", "open_ai_api_base": "https://open.bigmodel.cn/api/paas/v4", "open_ai_api_key": "YOUR_API_KEY" } diff --git a/docs/ja/models/index.mdx b/docs/ja/models/index.mdx index 966604c6..2d231a19 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.6、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview + Agent モードでは、品質とコストのバランスから以下のモデルをおすすめします: MiniMax-M2.7、glm-5.1、kimi-k2.6、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview ## 設定 @@ -22,7 +22,7 @@ CowAgentは国内外の主要なLLMをサポートしています。モデルイ MiniMax-M2.7およびその他のシリーズモデル - glm-5-turbo、glm-5およびその他のシリーズモデル + glm-5.1、glm-5-turbo、glm-5およびその他のシリーズモデル qwen3.6-plus、qwen3-maxなど diff --git a/docs/models/glm.mdx b/docs/models/glm.mdx index fe10f349..f667efdf 100644 --- a/docs/models/glm.mdx +++ b/docs/models/glm.mdx @@ -5,14 +5,14 @@ description: 智谱AI GLM 模型配置 ```json { - "model": "glm-5-turbo", + "model": "glm-5.1", "zhipu_ai_api_key": "YOUR_API_KEY" } ``` | 参数 | 说明 | | --- | --- | -| `model` | 可填 `glm-5-turbo`、`glm-5`、`glm-4.7`、`glm-4-plus`、`glm-4-flash`、`glm-4-air` 等,参考 [模型编码](https://bigmodel.cn/dev/api/normal-model/glm-4) | +| `model` | 可填 `glm-5.1`、`glm-5-turbo`、`glm-5`、`glm-4.7`、`glm-4-plus`、`glm-4-flash`、`glm-4-air` 等,参考 [模型编码](https://bigmodel.cn/dev/api/normal-model/glm-4) | | `zhipu_ai_api_key` | 在 [智谱AI 控制台](https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys) 创建 | 也支持 OpenAI 兼容方式接入: @@ -20,7 +20,7 @@ description: 智谱AI GLM 模型配置 ```json { "bot_type": "openai", - "model": "glm-5-turbo", + "model": "glm-5.1", "open_ai_api_base": "https://open.bigmodel.cn/api/paas/v4", "open_ai_api_key": "YOUR_API_KEY" } diff --git a/docs/models/index.mdx b/docs/models/index.mdx index a10aaeca..01169347 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.6、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview + Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、glm-5.1、kimi-k2.6、qwen3.6-plus、claude-sonnet-4-6、gemini-3.1-pro-preview 同时支持使用 [LinkAI](https://link-ai.tech) 平台接口,可灵活切换多种模型,并支持知识库、工作流、插件等 Agent 能力。 @@ -27,7 +27,7 @@ CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在 MiniMax-M2.7 等系列模型 - glm-5-turbo、glm-5 等系列模型 + glm-5.1、glm-5-turbo、glm-5 等系列模型 qwen3.6-plus、qwen3-max 等 diff --git a/run.sh b/run.sh index d2a4a73c..5bfacf51 100755 --- a/run.sh +++ b/run.sh @@ -310,7 +310,7 @@ select_model() { echo -e "${CYAN}${BOLD} Select AI Model${NC}" 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}2) Zhipu AI (glm-5.1, glm-5-turbo, glm-5, 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}" @@ -357,7 +357,7 @@ read_api_base() { 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" ;; + 2) read_model_config "Zhipu AI" "glm-5.1" "ZHIPU_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" ;; diff --git a/scripts/run.ps1 b/scripts/run.ps1 index 28805b59..e84accb9 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -170,7 +170,7 @@ function Install-Dependencies { # ── model selection ────────────────────────────────────────────── $ModelChoices = @{ "1" = @{ Provider = "MiniMax"; Default = "MiniMax-M2.7"; Key = "MINIMAX_KEY" } - "2" = @{ Provider = "Zhipu AI"; Default = "glm-5-turbo"; Key = "ZHIPU_KEY" } + "2" = @{ Provider = "Zhipu AI"; Default = "glm-5.1"; Key = "ZHIPU_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" } @@ -185,7 +185,7 @@ function Select-Model { Write-Info " Select AI 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 "2) Zhipu AI (glm-5.1, glm-5-turbo, glm-5, 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.)"