Skip to content

feat(models): 新增 Claude Fable 5 模型选项#4

Merged
jwangkun merged 1 commit into
PeakCode-AI:mainfrom
changdapeng:dev_cdp
Jun 10, 2026
Merged

feat(models): 新增 Claude Fable 5 模型选项#4
jwangkun merged 1 commit into
PeakCode-AI:mainfrom
changdapeng:dev_cdp

Conversation

@changdapeng

Copy link
Copy Markdown
Contributor

改动内容

在共享模型注册表(packages/contracts/src/model.ts)的 claudeAgent 提供商下新增 claude-fable-5,使其可以在模型选择器中被选中:

  • 推理强度档位:low / medium / high(默认)/ xhigh / max,以及 ultrathink / ultracode
  • 上下文窗口:200k(默认)/ 1M(选 1M 时按既有逻辑自动拼接 [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.ts 59 个测试全部通过
  • 本地 dev 环境实测:模型下拉列表可正常选择 Claude Fable 5

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added size:S vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Jun 10, 2026

@jwangkun jwangkun left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 模型:

配置正确性检查

  • 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

改进建议(非阻塞,可后续补充)

  1. 可在 apps/web/src/whatsNew/entries.ts 添加一条"Claude Fable 5 可用"的更新公告
  2. 可在 packages/shared/src/model.test.ts 中添加 claude-fable-5 的 capability 断言

所有检查通过,合并。

@jwangkun jwangkun merged commit dcdb229 into PeakCode-AI:main Jun 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants