v3.1.6
中文版
cc-router v3.1.6
🐛 修复
-
修复 Claude 桌面端等客户端的官方模型名被误拒 (#22)
Claude 桌面端会发送带日期后缀的官方模型 ID(如claude-haiku-4-5-20251001),
旧版本只认精确的别名,认不出这类带后缀/带版本号的写法,导致请求误入 fallback、
被非 Anthropic 上游拒绝。现已修复。解析逻辑改为对官方
claude-opus*/claude-sonnet*/claude-haiku*做前缀匹配,
自动兜住任意版本号与日期后缀(claude-opus-4-1-...、未来的claude-opus-4-8等),
以后 Anthropic 发布新模型版本也无需再改解析代码。感谢 @jee-yan 反馈并精准定位问题 🙏
完整变更: v3.1.4...v3.1.6
English version
cc-router v3.1.6
🐛 Fixes
-
Fix official model IDs from the Claude desktop app being wrongly rejected (#22)
The Claude desktop app sends official model IDs with a date suffix (e.g.
claude-haiku-4-5-20251001). Earlier versions only matched exact aliases and
failed to recognize these suffixed/versioned names, so requests fell through to
fallback and got rejected by non-Anthropic upstreams. This is now fixed.Model-name resolution now uses prefix matching for official
claude-opus*/
claude-sonnet*/claude-haiku*names, automatically covering any version
number and date suffix (claude-opus-4-1-..., futureclaude-opus-4-8, etc.).
Future Anthropic model releases will work without any parser changes.Thanks to @jee-yan for the report and precise diagnosis 🙏
Full changelog: v3.1.4...v3.1.6