From f5caba81d62645c6d11306f4e5ddec32dda52294 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Wed, 10 Jun 2026 09:39:37 +0800 Subject: [PATCH] feat(models): support claude-fable-5 --- README.md | 2 +- channel/web/web_channel.py | 9 ++- common/const.py | 88 +++++++++++++++--------------- docs/ja/README.md | 2 +- docs/ja/models/claude.mdx | 9 +-- docs/ja/models/index.mdx | 2 +- docs/models/claude.mdx | 9 +-- docs/models/index.mdx | 2 +- docs/zh/README.md | 2 +- docs/zh/models/claude.mdx | 9 +-- docs/zh/models/index.mdx | 2 +- models/claudeapi/claude_api_bot.py | 2 +- run.sh | 4 +- scripts/run.ps1 | 4 +- 14 files changed, 77 insertions(+), 69 deletions(-) diff --git a/README.md b/README.md index 252d6603..4c91f1cf 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ CowAgent supports all mainstream LLM providers. **Chat, vision, image generation | Provider | Featured Models | Chat | Vision | Image Gen | ASR | TTS | Embedding | | --- | --- | :-: | :-: | :-: | :-: | :-: | :-: | -| [Claude](https://docs.cowagent.ai/models/claude) | claude-opus-4-8 | ✅ | ✅ | | | | | +| [Claude](https://docs.cowagent.ai/models/claude) | claude-fable-5 | ✅ | ✅ | | | | | | [OpenAI](https://docs.cowagent.ai/models/openai) | gpt-5.5, o-series | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | [Gemini](https://docs.cowagent.ai/models/gemini) | gemini-3.5-flash | ✅ | ✅ | ✅ | | | | | [DeepSeek](https://docs.cowagent.ai/models/deepseek) | deepseek-v4-flash / pro | ✅ | | | | | | diff --git a/channel/web/web_channel.py b/channel/web/web_channel.py index 72f07246..1be31c6a 100644 --- a/channel/web/web_channel.py +++ b/channel/web/web_channel.py @@ -1459,9 +1459,12 @@ class ChatHandler: class ConfigHandler: _RECOMMENDED_MODELS = [ - const.DEEPSEEK_V4_FLASH, const.DEEPSEEK_V4_PRO, const.DEEPSEEK_CHAT, const.DEEPSEEK_REASONER, + const.DEEPSEEK_V4_FLASH, const.DEEPSEEK_V4_PRO, const.MINIMAX_M3, const.MINIMAX_M2_7_HIGHSPEED, const.MINIMAX_M2_7, - const.CLAUDE_4_8_OPUS, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_SONNET, const.CLAUDE_4_6_OPUS, const.CLAUDE_4_5_SONNET, + # claude-fable-5 is intentionally placed at the end of the Claude + # group here: it is expensive, so avoid surfacing it too early in + # the LinkAI dropdown. + const.CLAUDE_4_8_OPUS, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_SONNET, const.CLAUDE_4_6_OPUS, const.CLAUDE_FABLE_5, const.GEMINI_35_FLASH, const.GEMINI_31_FLASH_LITE_PRE, const.GEMINI_31_PRO_PRE, const.GEMINI_3_FLASH_PRE, const.GPT_55, const.GPT_54, const.GPT_54_MINI, const.GPT_54_NANO, const.GPT_5, const.GPT_41, const.GPT_4o, const.GLM_5_1, const.GLM_5_TURBO, const.GLM_5, const.GLM_4_7, @@ -1506,7 +1509,7 @@ class ConfigHandler: "api_base_key": "claude_api_base", "api_base_default": "https://api.anthropic.com/v1", "api_base_placeholder": _PLACEHOLDER_V1, - "models": [const.CLAUDE_4_8_OPUS, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_SONNET, const.CLAUDE_4_6_OPUS, const.CLAUDE_4_5_SONNET], + "models": [const.CLAUDE_FABLE_5, const.CLAUDE_4_8_OPUS, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_SONNET, const.CLAUDE_4_6_OPUS], }), ("gemini", { "label": "Gemini", diff --git a/common/const.py b/common/const.py index 53db4984..a7dde568 100644 --- a/common/const.py +++ b/common/const.py @@ -1,4 +1,4 @@ -# 厂商类型 +# Provider types OPEN_AI = "openAI" OPENAI = "openai" CHATGPT = "chatGPT" # legacy alias for OPENAI, kept for backward compatibility @@ -8,48 +8,49 @@ XUNFEI = "xunfei" CHATGPTONAZURE = "chatGPTOnAzure" LINKAI = "linkai" CLAUDEAPI= "claudeAPI" -QWEN = "qwen" # 千问 (兼容旧配置,实际走 DashscopeBot) -QWEN_DASHSCOPE = "dashscope" # 千问 DashScope 接入 +QWEN = "qwen" # legacy alias, actually routed to DashscopeBot +QWEN_DASHSCOPE = "dashscope" # Qwen via DashScope GEMINI = "gemini" ZHIPU_AI = "zhipu" MOONSHOT = "moonshot" MiniMax = "minimax" DEEPSEEK = "deepseek" -MIMO = "mimo" # 小米 MiMo 大模型 +MIMO = "mimo" # Xiaomi MiMo CUSTOM = "custom" # custom OpenAI-compatible API, bot_type won't auto-switch on model change MODELSCOPE = "modelscope" -# 模型列表 +# Model list # Claude (Anthropic) CLAUDE3 = "claude-3-opus-20240229" CLAUDE_3_OPUS = "claude-3-opus-latest" CLAUDE_3_OPUS_0229 = "claude-3-opus-20240229" CLAUDE_3_SONNET = "claude-3-sonnet-20240229" CLAUDE_3_HAIKU = "claude-3-haiku-20240307" -CLAUDE_35_SONNET = "claude-3-5-sonnet-latest" # 带 latest 标签的模型名称,会不断更新指向最新发布的模型 -CLAUDE_35_SONNET_1022 = "claude-3-5-sonnet-20241022" # 带具体日期的模型名称,会固定为该日期发布的模型 +CLAUDE_35_SONNET = "claude-3-5-sonnet-latest" # "latest" tag always points to the newest release +CLAUDE_35_SONNET_1022 = "claude-3-5-sonnet-20241022" # dated name pinned to a specific release CLAUDE_35_SONNET_0620 = "claude-3-5-sonnet-20240620" CLAUDE_4_OPUS = "claude-opus-4-0" -CLAUDE_4_8_OPUS = "claude-opus-4-8" # Claude Opus 4.8 - Agent推荐模型 +CLAUDE_FABLE_5 = "claude-fable-5" # Claude Fable 5 - Agent recommended model +CLAUDE_4_8_OPUS = "claude-opus-4-8" # Claude Opus 4.8 - Agent recommended model CLAUDE_4_7_OPUS = "claude-opus-4-7" # Claude Opus 4.7 CLAUDE_4_6_OPUS = "claude-opus-4-6" # Claude Opus 4.6 CLAUDE_4_SONNET = "claude-sonnet-4-0" # Claude Sonnet 4.0 -CLAUDE_4_5_SONNET = "claude-sonnet-4-5" # Claude Sonnet 4.5 - Agent推荐模型 -CLAUDE_4_6_SONNET = "claude-sonnet-4-6" # Claude Sonnet 4.6 - Agent推荐模型 +CLAUDE_4_5_SONNET = "claude-sonnet-4-5" # Claude Sonnet 4.5 - Agent recommended model +CLAUDE_4_6_SONNET = "claude-sonnet-4-6" # Claude Sonnet 4.6 - Agent recommended model # Gemini (Google) GEMINI_PRO = "gemini-1.0-pro" GEMINI_15_flash = "gemini-1.5-flash" GEMINI_15_PRO = "gemini-1.5-pro" -GEMINI_20_flash_exp = "gemini-2.0-flash-exp" # exp结尾为实验模型,会逐步不再支持 -GEMINI_20_FLASH = "gemini-2.0-flash" # 正式版模型 +GEMINI_20_flash_exp = "gemini-2.0-flash-exp" # "-exp" models are experimental and will be phased out +GEMINI_20_FLASH = "gemini-2.0-flash" # stable release GEMINI_25_FLASH_PRE = "gemini-2.5-flash-preview-05-20" GEMINI_25_PRO_PRE = "gemini-2.5-pro-preview-05-06" -GEMINI_3_FLASH_PRE = "gemini-3-flash-preview" # Gemini 3 Flash Preview - Agent推荐模型 +GEMINI_3_FLASH_PRE = "gemini-3-flash-preview" # Gemini 3 Flash Preview - Agent recommended model GEMINI_3_PRO_PRE = "gemini-3-pro-preview" # Gemini 3 Pro Preview -GEMINI_31_PRO_PRE = "gemini-3.1-pro-preview" # Gemini 3.1 Pro Preview - Agent推荐模型 -GEMINI_31_FLASH_LITE_PRE = "gemini-3.1-flash-lite-preview" # Gemini 3.1 Flash Lite Preview - Agent推荐模型 -GEMINI_35_FLASH = "gemini-3.5-flash" # Gemini 3.5 Flash - Agent推荐模型 +GEMINI_31_PRO_PRE = "gemini-3.1-pro-preview" # Gemini 3.1 Pro Preview - Agent recommended model +GEMINI_31_FLASH_LITE_PRE = "gemini-3.1-flash-lite-preview" # Gemini 3.1 Flash Lite Preview - Agent recommended model +GEMINI_35_FLASH = "gemini-3.5-flash" # Gemini 3.5 Flash - Agent recommended model # OpenAI GPT35 = "gpt-3.5-turbo" @@ -85,10 +86,10 @@ TTS_1 = "tts-1" TTS_1_HD = "tts-1-hd" # DeepSeek -DEEPSEEK_CHAT = "deepseek-chat" # DeepSeek-V3对话模型 -DEEPSEEK_REASONER = "deepseek-reasoner" # DeepSeek-R1模型 -DEEPSEEK_V4_FLASH = "deepseek-v4-flash" # DeepSeek V4 Flash - 默认推荐 (思考模式 + 工具调用) -DEEPSEEK_V4_PRO = "deepseek-v4-pro" # DeepSeek V4 Pro - 复杂任务更强 (思考模式 + 工具调用) +DEEPSEEK_CHAT = "deepseek-chat" # DeepSeek-V3 chat model +DEEPSEEK_REASONER = "deepseek-reasoner" # DeepSeek-R1 model +DEEPSEEK_V4_FLASH = "deepseek-v4-flash" # DeepSeek V4 Flash - default recommendation (thinking + tool calls) +DEEPSEEK_V4_PRO = "deepseek-v4-pro" # DeepSeek V4 Pro - stronger on complex tasks (thinking + tool calls) # Baidu Qianfan / ERNIE ERNIE_5_1 = "ernie-5.1" # ERNIE 5.1 - default recommendation, latest flagship @@ -100,30 +101,30 @@ ERNIE_4_TURBO_8K = "ERNIE-4.0-Turbo-8K" ERNIE_45_TURBO_VL = "ernie-4.5-turbo-vl" ERNIE_45_TURBO_VL_32K = "ernie-4.5-turbo-vl-32k" -# Qwen (通义千问 - 阿里云 DashScope) +# Qwen (Alibaba Cloud DashScope) QWEN_TURBO = "qwen-turbo" QWEN_PLUS = "qwen-plus" QWEN_MAX = "qwen-max" QWEN_LONG = "qwen-long" -QWEN3_MAX = "qwen3-max" # Qwen3 Max - Agent推荐模型 +QWEN3_MAX = "qwen3-max" # Qwen3 Max - Agent recommended model QWEN35_PLUS = "qwen3.5-plus" # Qwen3.5 Plus - Omni model (MultiModalConversation) QWEN36_PLUS = "qwen3.6-plus" # Qwen3.6 Plus - Omni model (MultiModalConversation) QWEN37_PLUS = "qwen3.7-plus" # Qwen3.7 Plus - Omni model (MultiModalConversation) -QWEN37_MAX = "qwen3.7-max" # Qwen3.7 Max - Agent推荐模型 +QWEN37_MAX = "qwen3.7-max" # Qwen3.7 Max - Agent recommended model QWQ_PLUS = "qwq-plus" # MiniMax MINIMAX_M3 = "MiniMax-M3" # MiniMax M3 - Latest (default) MINIMAX_M2_7 = "MiniMax-M2.7" # MiniMax M2.7 MINIMAX_M2_7_HIGHSPEED = "MiniMax-M2.7-highspeed" # MiniMax M2.7 highspeed -MINIMAX_TEXT_01 = "MiniMax-Text-01" # MiniMax 多模态 (vision) +MINIMAX_TEXT_01 = "MiniMax-Text-01" # MiniMax multimodal (vision) MINIMAX_ABAB6_5 = "abab6.5-chat" # MiniMax abab6.5 -# GLM (智谱AI) -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_5V_TURBO = "glm-5v-turbo" # 智谱多模态 (vision) +# GLM (Zhipu AI) +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_5V_TURBO = "glm-5v-turbo" # Zhipu multimodal (vision) GLM_4 = "glm-4" GLM_4_PLUS = "glm-4-plus" GLM_4_flash = "glm-4-flash" @@ -132,7 +133,7 @@ GLM_4_ALLTOOLS = "glm-4-alltools" GLM_4_0520 = "glm-4-0520" GLM_4_AIR = "glm-4-air" GLM_4_AIRX = "glm-4-airx" -GLM_4_7 = "glm-4.7" # 智谱 GLM-4.7 - Agent推荐模型 +GLM_4_7 = "glm-4.7" # GLM-4.7 - Agent recommended model # Kimi (Moonshot) MOONSHOT = "moonshot" @@ -140,12 +141,12 @@ KIMI_K2 = "kimi-k2" KIMI_K2_5 = "kimi-k2.5" KIMI_K2_6 = "kimi-k2.6" # Kimi K2.6 - Agent recommended model (default) -# 小米 MiMo -MIMO_V2_5_PRO = "mimo-v2.5-pro" # MiMo V2.5 Pro - 旗舰,长上下文(默认推荐) -MIMO_V2_5 = "mimo-v2.5" # MiMo V2.5 - 多模态(文/图/音/视频) +# Xiaomi MiMo +MIMO_V2_5_PRO = "mimo-v2.5-pro" # MiMo V2.5 Pro - flagship, long context (default recommendation) +MIMO_V2_5 = "mimo-v2.5" # MiMo V2.5 - multimodal (text/image/audio/video) MIMO_V2_PRO = "mimo-v2-pro" # MiMo V2 Pro -MIMO_V2_OMNI = "mimo-v2-omni" # MiMo V2 Omni - 多模态 -MIMO_V2_FLASH = "mimo-v2-flash" # MiMo V2 Flash - 极速版 +MIMO_V2_OMNI = "mimo-v2-omni" # MiMo V2 Omni - multimodal +MIMO_V2_FLASH = "mimo-v2-flash" # MiMo V2 Flash - high-speed # Doubao (Volcengine Ark) DOUBAO = "doubao" @@ -154,11 +155,11 @@ DOUBAO_SEED_2_PRO = "doubao-seed-2-0-pro-260215" DOUBAO_SEED_2_LITE = "doubao-seed-2-0-lite-260215" DOUBAO_SEED_2_MINI = "doubao-seed-2-0-mini-260215" -# ModelScope(魔搭社区) +# ModelScope QWEN3_235B_A22B_INSTRUCT_2507 = "Qwen/Qwen3-235B-A22B-Instruct-2507" QWEN3_5_27B = "Qwen/Qwen3.5-27B" -# 其他模型 +# Other models WEN_XIN = "wenxin" WEN_XIN_4 = "wenxin-4" XUNFEI = "xunfei" @@ -189,11 +190,11 @@ MODEL_LIST = [ # MiniMax MiniMax, MINIMAX_M3, MINIMAX_M2_7, MINIMAX_M2_7_HIGHSPEED, MINIMAX_ABAB6_5, - # 小米 MiMo + # Xiaomi MiMo MIMO, MIMO_V2_5_PRO, MIMO_V2_5, MIMO_V2_PRO, MIMO_V2_OMNI, MIMO_V2_FLASH, # Claude - CLAUDE3, CLAUDE_4_8_OPUS, CLAUDE_4_7_OPUS, CLAUDE_4_6_SONNET, CLAUDE_4_6_OPUS, CLAUDE_4_OPUS, CLAUDE_4_5_SONNET, CLAUDE_4_SONNET, CLAUDE_3_OPUS, CLAUDE_3_OPUS_0229, + CLAUDE3, CLAUDE_FABLE_5, CLAUDE_4_8_OPUS, CLAUDE_4_7_OPUS, CLAUDE_4_6_SONNET, CLAUDE_4_6_OPUS, CLAUDE_4_OPUS, CLAUDE_4_5_SONNET, CLAUDE_4_SONNET, CLAUDE_3_OPUS, CLAUDE_3_OPUS_0229, CLAUDE_35_SONNET, CLAUDE_35_SONNET_1022, CLAUDE_35_SONNET_0620, CLAUDE_3_SONNET, CLAUDE_3_HAIKU, "claude", "claude-3-haiku", "claude-3-sonnet", "claude-3-opus", "claude-3.5-sonnet", @@ -211,14 +212,14 @@ MODEL_LIST = [ GPT_54, GPT_55, GPT_54_MINI, GPT_54_NANO, O1, O1_MINI, - # GLM (智谱AI) + # GLM (Zhipu AI) 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, - # Qwen (通义千问) + # Qwen QWEN37_PLUS, QWEN37_MAX, QWEN36_PLUS, QWEN35_PLUS, QWEN3_MAX, QWEN_MAX, QWEN_PLUS, QWEN_TURBO, QWEN_LONG, - # Doubao (豆包) + # Doubao DOUBAO, DOUBAO_SEED_2_CODE, DOUBAO_SEED_2_PRO, DOUBAO_SEED_2_LITE, DOUBAO_SEED_2_MINI, # Kimi (Moonshot) @@ -231,11 +232,12 @@ MODEL_LIST = [ # LinkAI LINKAI_35, LINKAI_4_TURBO, LINKAI_4o, - # 其他模型 + # Other models WEN_XIN, WEN_XIN_4, XUNFEI, ] MODEL_LIST = MODEL_LIST + GITEE_AI_MODEL_LIST + MODELSCOPE_MODEL_LIST + # channel FEISHU = "feishu" DINGTALK = "dingtalk" diff --git a/docs/ja/README.md b/docs/ja/README.md index 39c2b6a2..afe51342 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -103,7 +103,7 @@ CowAgent は主要な LLM プロバイダーすべてに対応しています。 | プロバイダー | 代表的なモデル | チャット | 画像認識 | 画像生成 | ASR | TTS | Embedding | | --- | --- | :-: | :-: | :-: | :-: | :-: | :-: | -| [Claude](https://docs.cowagent.ai/ja/models/claude) | claude-opus-4-8 | ✅ | ✅ | | | | | +| [Claude](https://docs.cowagent.ai/ja/models/claude) | claude-fable-5 | ✅ | ✅ | | | | | | [OpenAI](https://docs.cowagent.ai/ja/models/openai) | gpt-5.5、o シリーズ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | [Gemini](https://docs.cowagent.ai/ja/models/gemini) | gemini-3.5-flash | ✅ | ✅ | ✅ | | | | | [DeepSeek](https://docs.cowagent.ai/ja/models/deepseek) | deepseek-v4-flash / pro | ✅ | | | | | | diff --git a/docs/ja/models/claude.mdx b/docs/ja/models/claude.mdx index 2b951e34..826ec2d2 100644 --- a/docs/ja/models/claude.mdx +++ b/docs/ja/models/claude.mdx @@ -13,14 +13,14 @@ Claude は Anthropic が提供するモデルで、テキスト対話と画像 ```json { - "model": "claude-opus-4-8", + "model": "claude-fable-5", "claude_api_key": "YOUR_API_KEY" } ``` | パラメータ | 説明 | | --- | --- | -| `model` | `claude-opus-4-8`、`claude-opus-4-7`、`claude-sonnet-4-6`、`claude-opus-4-6`、`claude-sonnet-4-5`、`claude-sonnet-4-0`、`claude-3-5-sonnet-latest` などをサポート。詳細は [公式モデル一覧](https://docs.anthropic.com/en/docs/about-claude/models/overview) を参照 | +| `model` | `claude-fable-5`、`claude-opus-4-8`、`claude-opus-4-7`、`claude-sonnet-4-6`、`claude-opus-4-6`、`claude-sonnet-4-5`、`claude-sonnet-4-0`、`claude-3-5-sonnet-latest` などをサポート。詳細は [公式モデル一覧](https://docs.anthropic.com/en/docs/about-claude/models/overview) を参照 | | `claude_api_key` | [Claude コンソール](https://console.anthropic.com/settings/keys) で作成 | | `claude_api_base` | 任意。デフォルトは `https://api.anthropic.com/v1`。サードパーティのプロキシに変更可能 | @@ -28,8 +28,9 @@ Claude は Anthropic が提供するモデルで、テキスト対話と画像 | モデル | 用途 | | --- | --- | -| `claude-opus-4-8` | デフォルト推奨。最新フラッグシップ。複雑な推論や長いタスクチェーンに最適 | -| `claude-opus-4-7` | 前世代の Opus フラッグシップ | +| `claude-fable-5` | 最新フラッグシップ。複雑な推論や長いタスクチェーンに最適。価格はやや高め | +| `claude-opus-4-8` | 前世代フラッグシップ。性能とコストのバランスが良い | +| `claude-opus-4-7` | より以前の Opus フラッグシップ | | `claude-sonnet-4-6` | コストパフォーマンスと速度のバランスが良く、コストも低い | | `claude-opus-4-6` / `claude-sonnet-4-5` / `claude-sonnet-4-0` | より以前のフラッグシップ。価格はより安い | diff --git a/docs/ja/models/index.mdx b/docs/ja/models/index.mdx index 916ac469..2e25171e 100644 --- a/docs/ja/models/index.mdx +++ b/docs/ja/models/index.mdx @@ -20,7 +20,7 @@ CowAgent は国内外の主要ベンダーの大規模言語モデルをサポ | --- | --- | :-: | :-: | :-: | :-: | :-: | :-: | | [DeepSeek](/models/deepseek) | deepseek-v4-flash / pro | ✅ | | | | | | | [MiniMax](/models/minimax) | MiniMax-M3 | ✅ | ✅ | ✅ | | ✅ | | -| [Claude](/models/claude) | claude-opus-4-8 | ✅ | ✅ | | | | | +| [Claude](/models/claude) | claude-fable-5 | ✅ | ✅ | | | | | | [Gemini](/models/gemini) | gemini-3.5-flash | ✅ | ✅ | ✅ | | | | | [OpenAI](/models/openai) | gpt-5.5、o シリーズ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | [Zhipu GLM](/models/glm) | glm-5.1、glm-5v-turbo | ✅ | ✅ | | ✅ | | ✅ | diff --git a/docs/models/claude.mdx b/docs/models/claude.mdx index bb831eb8..c5e4fd56 100644 --- a/docs/models/claude.mdx +++ b/docs/models/claude.mdx @@ -13,14 +13,14 @@ Claude is provided by Anthropic and supports both text chat and image understand ```json { - "model": "claude-opus-4-8", + "model": "claude-fable-5", "claude_api_key": "YOUR_API_KEY" } ``` | Parameter | Description | | --- | --- | -| `model` | Supports `claude-opus-4-8`, `claude-opus-4-7`, `claude-sonnet-4-6`, `claude-opus-4-6`, `claude-sonnet-4-5`, `claude-sonnet-4-0`, `claude-3-5-sonnet-latest`, etc. See [official models](https://docs.anthropic.com/en/docs/about-claude/models/overview) | +| `model` | Supports `claude-fable-5`, `claude-opus-4-8`, `claude-opus-4-7`, `claude-sonnet-4-6`, `claude-opus-4-6`, `claude-sonnet-4-5`, `claude-sonnet-4-0`, `claude-3-5-sonnet-latest`, etc. See [official models](https://docs.anthropic.com/en/docs/about-claude/models/overview) | | `claude_api_key` | Create one in the [Claude Console](https://console.anthropic.com/settings/keys) | | `claude_api_base` | Optional, defaults to `https://api.anthropic.com/v1`. Can be changed to a third-party proxy | @@ -28,8 +28,9 @@ Claude is provided by Anthropic and supports both text chat and image understand | Model | Use Case | | --- | --- | -| `claude-opus-4-8` | Default recommended, latest flagship; best for complex reasoning and long-running tasks | -| `claude-opus-4-7` | Previous-generation Opus flagship | +| `claude-fable-5` | Latest flagship; best for complex reasoning and long-running tasks, at a higher price | +| `claude-opus-4-8` | Previous flagship with balanced quality and cost | +| `claude-opus-4-7` | Earlier Opus flagship | | `claude-sonnet-4-6` | Balanced cost and speed, lower cost | | `claude-opus-4-6` / `claude-sonnet-4-5` / `claude-sonnet-4-0` | Earlier flagships at a lower price | diff --git a/docs/models/index.mdx b/docs/models/index.mdx index 2492270b..7575adb4 100644 --- a/docs/models/index.mdx +++ b/docs/models/index.mdx @@ -13,7 +13,7 @@ A snapshot of each vendor's capabilities. "Text" refers to the main chat model; | --- | --- | :-: | :-: | :-: | :-: | :-: | :-: | | [DeepSeek](/models/deepseek) | deepseek-v4-flash / pro | ✅ | | | | | | | [MiniMax](/models/minimax) | MiniMax-M3 | ✅ | ✅ | ✅ | | ✅ | | -| [Claude](/models/claude) | claude-opus-4-8 | ✅ | ✅ | | | | | +| [Claude](/models/claude) | claude-fable-5 | ✅ | ✅ | | | | | | [Gemini](/models/gemini) | gemini-3.5-flash | ✅ | ✅ | ✅ | | | | | [OpenAI](/models/openai) | gpt-5.5, o-series | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | [GLM](/models/glm) | glm-5.1, glm-5v-turbo | ✅ | ✅ | | ✅ | | ✅ | diff --git a/docs/zh/README.md b/docs/zh/README.md index a39b4d13..c57332b3 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -105,7 +105,7 @@ CowAgent 支持国内外主流厂商的大语言模型。**文本对话、图像 | --- | --- | :-: | :-: | :-: | :-: | :-: | :-: | | [DeepSeek](https://docs.cowagent.ai/zh/models/deepseek) | deepseek-v4-flash / pro | ✅ | | | | | | | [MiniMax](https://docs.cowagent.ai/zh/models/minimax) | MiniMax-M3 | ✅ | ✅ | ✅ | | ✅ | | -| [Claude](https://docs.cowagent.ai/zh/models/claude) | claude-opus-4-8 | ✅ | ✅ | | | | | +| [Claude](https://docs.cowagent.ai/zh/models/claude) | claude-fable-5 | ✅ | ✅ | | | | | | [Gemini](https://docs.cowagent.ai/zh/models/gemini) | gemini-3.5-flash | ✅ | ✅ | ✅ | | | | | [OpenAI](https://docs.cowagent.ai/zh/models/openai) | gpt-5.5、o 系列 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | [智谱 GLM](https://docs.cowagent.ai/zh/models/glm) | glm-5.1、glm-5v-turbo | ✅ | ✅ | | ✅ | | ✅ | diff --git a/docs/zh/models/claude.mdx b/docs/zh/models/claude.mdx index ee1809d6..a3e495d3 100644 --- a/docs/zh/models/claude.mdx +++ b/docs/zh/models/claude.mdx @@ -13,14 +13,14 @@ Claude 由 Anthropic 提供,支持文本对话与图像理解,主流 Sonnet ```json { - "model": "claude-opus-4-8", + "model": "claude-fable-5", "claude_api_key": "YOUR_API_KEY" } ``` | 参数 | 说明 | | --- | --- | -| `model` | 支持 `claude-opus-4-8`、`claude-opus-4-7`、`claude-sonnet-4-6`、`claude-opus-4-6`、`claude-sonnet-4-5`、`claude-sonnet-4-0`、`claude-3-5-sonnet-latest` 等,参考 [官方模型](https://docs.anthropic.com/en/docs/about-claude/models/overview) | +| `model` | 支持 `claude-fable-5`、`claude-opus-4-8`、`claude-opus-4-7`、`claude-sonnet-4-6`、`claude-opus-4-6`、`claude-sonnet-4-5`、`claude-sonnet-4-0`、`claude-3-5-sonnet-latest` 等,参考 [官方模型](https://docs.anthropic.com/en/docs/about-claude/models/overview) | | `claude_api_key` | 在 [Claude 控制台](https://console.anthropic.com/settings/keys) 创建 | | `claude_api_base` | 可选,默认为 `https://api.anthropic.com/v1`,可改为第三方代理 | @@ -28,8 +28,9 @@ Claude 由 Anthropic 提供,支持文本对话与图像理解,主流 Sonnet | 模型 | 适用场景 | | --- | --- | -| `claude-opus-4-8` | 默认推荐,最新旗舰,复杂推理与长链路任务效果最佳 | -| `claude-opus-4-7` | 上一代 Opus 旗舰 | +| `claude-fable-5` | 最新旗舰,复杂推理与长链路任务效果最佳,价格较高 | +| `claude-opus-4-8` | 上一代 Opus 旗舰,综合表现与成本均衡 | +| `claude-opus-4-7` | 更早的 Opus 旗舰 | | `claude-sonnet-4-6` | 性价比与速度平衡,成本更低 | | `claude-opus-4-6` / `claude-sonnet-4-5` / `claude-sonnet-4-0` | 更早的旗舰,价格更低 | diff --git a/docs/zh/models/index.mdx b/docs/zh/models/index.mdx index ce858b47..0a1e0910 100644 --- a/docs/zh/models/index.mdx +++ b/docs/zh/models/index.mdx @@ -14,7 +14,7 @@ CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在 | --- | --- | :-: | :-: | :-: | :-: | :-: | :-: | | [DeepSeek](/zh/models/deepseek) | deepseek-v4-flash / pro | ✅ | | | | | | | [MiniMax](/zh/models/minimax) | MiniMax-M3 | ✅ | ✅ | ✅ | | ✅ | | -| [Claude](/zh/models/claude) | claude-opus-4-8 | ✅ | ✅ | | | | | +| [Claude](/zh/models/claude) | claude-fable-5 | ✅ | ✅ | | | | | | [Gemini](/zh/models/gemini) | gemini-3.5-flash | ✅ | ✅ | ✅ | | | | | [OpenAI](/zh/models/openai) | gpt-5.5、o 系列 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | [智谱 GLM](/zh/models/glm) | glm-5.1、glm-5v-turbo | ✅ | ✅ | | ✅ | | ✅ | diff --git a/models/claudeapi/claude_api_bot.py b/models/claudeapi/claude_api_bot.py index 05a7b567..116f7bc0 100644 --- a/models/claudeapi/claude_api_bot.py +++ b/models/claudeapi/claude_api_bot.py @@ -223,7 +223,7 @@ class ClaudeAPIBot(Bot, OpenAIImage): return 8192 elif model and model.startswith("claude-3") and "opus" in model: return 4096 - elif model and (model.startswith("claude-sonnet-4") or model.startswith("claude-opus-4")): + elif model and (model.startswith("claude-sonnet-4") or model.startswith("claude-opus-4") or model.startswith("claude-fable")): return 64000 return 8192 diff --git a/run.sh b/run.sh index 015f5d92..638fecfc 100755 --- a/run.sh +++ b/run.sh @@ -597,7 +597,7 @@ select_model() { # The 12th option is "skip" -> configure later in the web console. select_menu sel "$title" \ "DeepSeek (deepseek-v4-flash, deepseek-v4-pro, etc.)" \ - "Claude (claude-opus-4-8, claude-opus-4-7, etc.)" \ + "Claude (claude-fable-5, claude-opus-4-8, etc.)" \ "Gemini (gemini-3.5-flash, gemini-3.1-pro-preview, etc.)" \ "OpenAI (gpt-5.5, etc.)" \ "MiniMax (MiniMax-M3, etc.)" \ @@ -629,7 +629,7 @@ read_model_config() { configure_model() { case "$model_choice" in 1) read_model_config "DeepSeek" "deepseek-v4-flash" "DEEPSEEK_KEY" ;; - 2) read_model_config "Claude" "claude-opus-4-8" "CLAUDE_KEY" ;; + 2) read_model_config "Claude" "claude-fable-5" "CLAUDE_KEY" ;; 3) read_model_config "Gemini" "gemini-3.1-pro-preview" "GEMINI_KEY" ;; 4) read_model_config "OpenAI" "gpt-5.5" "OPENAI_KEY" ;; 5) read_model_config "MiniMax" "MiniMax-M3" "MINIMAX_KEY" ;; diff --git a/scripts/run.ps1 b/scripts/run.ps1 index 53ad3cb8..76fa7708 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -370,7 +370,7 @@ function Install-Dependencies { # Each entry: Provider / default model name / config key field / optional base. $ModelChoices = @{ 1 = @{ Provider = "DeepSeek"; Default = "deepseek-v4-flash"; Field = "deepseek_api_key" } - 2 = @{ Provider = "Claude"; Default = "claude-opus-4-8"; Field = "claude_api_key"; BaseField = "claude_api_base" } + 2 = @{ Provider = "Claude"; Default = "claude-fable-5"; Field = "claude_api_key"; BaseField = "claude_api_base" } 3 = @{ Provider = "Gemini"; Default = "gemini-3.1-pro-preview"; Field = "gemini_api_key"; BaseField = "gemini_api_base" } 4 = @{ Provider = "OpenAI"; Default = "gpt-5.5"; Field = "open_ai_api_key"; BaseField = "open_ai_api_base" } 5 = @{ Provider = "MiniMax"; Default = "MiniMax-M3"; Field = "minimax_api_key" } @@ -387,7 +387,7 @@ function Select-Model { $title = T "选择 AI 模型" "Select AI Model" $options = @( "DeepSeek (deepseek-v4-flash, deepseek-v4-pro, etc.)", - "Claude (claude-opus-4-8, claude-opus-4-7, etc.)", + "Claude (claude-fable-5, claude-opus-4-8, etc.)", "Gemini (gemini-3.5-flash, gemini-3.1-pro-preview, etc.)", "OpenAI (gpt-5.5, etc.)", "MiniMax (MiniMax-M3, etc.)",