feat(models): 新增 Claude Fable 5 模型选项#4
Merged
Conversation
Add claude-fable-5 to the shared model registry with effort levels (low through max plus ultrathink/ultracode), 200k/1M context window options, and no fast mode (unsupported on Fable 5). Register fable slug aliases for normalization. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
jwangkun
approved these changes
Jun 10, 2026
jwangkun
left a comment
Collaborator
There was a problem hiding this comment.
PR 审查报告
结论:通过 ✅ 可以合并
审查摘要
| 维度 | 结果 | 说明 |
|---|---|---|
| 问题修复 | ✅ | Claude Fable 5 是 Anthropic 于 2026/6/9 发布的真实 Mythos-class 模型,PR 及时将其加入模型选择器 |
| 代码规范 | ✅ 通过 | typecheck / lint / fmt 全部通过,diff 仅 25 行,无 bun.lock 污染 |
| 与项目方向对齐 | ✅ | 新增模型选项符合项目"支持多模型"的发展方向 |
详细分析
模型真实性确认
通过网络搜索确认,Claude Fable 5 是 Anthropic 于 2026 年 6 月 9 日发布的首个公开 Mythos-class 模型:
- API slug:
claude-fable-5 - 支持 1M token 上下文窗口(API 上默认 200k,[1m] 后缀切换)
- 详细评测: https://techcrunch.com/2026/06/09/anthropics-claude-fable-5-is-a-version-of-mythos-the-public-can-access-today/
配置正确性检查
reasoningEffortLevels: low/medium/high/xhigh/max/ultrathink/ultracode ✓(与 Fable 5 能力一致)supportsFastMode: false✓(Fable 5 不支持 Fast Mode,与 Opus 不同)supportsThinkingToggle: false✓(Fable 5 使用 ultrathink 而非切換式 thinking)promptInjectedEffortLevels: ["ultrathink"]✓contextWindowOptions: ["200k", "1m"]✓(遵循既有模式)- 别名
fable/fable-5/claude-fable5✓
改进建议(非阻塞,可后续补充)
- 可在
apps/web/src/whatsNew/entries.ts添加一条"Claude Fable 5 可用"的更新公告 - 可在
packages/shared/src/model.test.ts中添加claude-fable-5的 capability 断言
所有检查通过,合并。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
在共享模型注册表(
packages/contracts/src/model.ts)的claudeAgent提供商下新增claude-fable-5,使其可以在模型选择器中被选中:[1m]后缀传给底层)supportsFastMode: false(Fast mode 目前仅 Opus 4.8/4.7/4.6 支持,Fable 5 不支持)fable/fable-5/claude-fable5别名映射验证
bun fmt/bun lint/bun typecheck全部通过(lint 0 错误,警告均为存量)packages/shared/src/model.test.ts59 个测试全部通过🤖 Generated with Claude Code