Skip to content

fix(pricing): seed Claude Fable 5.1 / Mythos 5.1 and restore Sonnet 5 to the $2/$10 standard price - #7051

Merged
farion1231 merged 1 commit into
farion1231:mainfrom
Eureka0w0v0:fix/pricing-fable-5-1-sonnet-5
Sep 2, 2026
Merged

farion1231 merged 1 commit into
farion1231:mainfrom
Eureka0w0v0:fix/pricing-fable-5-1-sonnet-5

Conversation

@Eureka0w0v0

Copy link
Copy Markdown
Contributor

Summary / 概述

Sync the Claude rows of seed_model_pricing with Anthropic's official pricing page:

  • Add claude-fable-5-1 / claude-mythos-5-1 — $10 / $50, cache read $0.25 (0.025x, a quarter of Fable 5's $1), cache write $12.50. Without a seed row these requests are stored at $0: the prefix rule (model_id LIKE 'claude-fable-5-1-%') cannot fall back to claude-fable-5, and copying that row would overcharge cache reads 4x (cache reads dominate Claude Code sessions).
  • Sonnet 5 → $2 / $10 / $0.20 / $2.50. The pricing page now states the $2/$10 introductory price is the standard price and the increase to $3/$15 scheduled for 2026-09-01 will not occur. The seed comment had excluded the promo on purpose, so existing installs carry 3/15/0.30/3.75; a repair_current_model_pricing guard corrects rows that still hold exactly those old values (user-customized rows don't match and are left alone — same pattern as the GPT-5.6 / DeepSeek guards).
  • Tests: seed values for the three rows; the guard repairs the old list price and keeps a custom price.

Sources: https://platform.claude.com/docs/en/about-claude/pricing (model table + "Claude Sonnet 5 introductory pricing" note) · https://platform.claude.com/docs/en/models/fable-5-1/overview

中文:补 Fable 5.1 / Mythos 5.1 seed(缓存读 $0.25,非 Fable 5 的 $1);Sonnet 5 官方确认 $2/$10 为正式价、9-1 涨价取消,seed 改回并加修复守卫。

Related Issue / 关联 Issue

Fixes #7050

Screenshots / 截图

N/A — seed data only.

Checklist / 检查清单

  • pnpm typecheck passes / 通过 TypeScript 类型检查 — n/a, no frontend change
  • pnpm format:check passes / 通过代码格式检查 — n/a
  • cargo clippy passes (if Rust code changed) / 通过 Clippy 检查 — not run locally (no Rust toolchain on this machine); relying on the Backend Checks CI job. Values were verified by hand against the official pricing page and by applying them to a real v3.20.1 database (usage totals recompute as expected).
  • Updated i18n files if user-facing text changed — no user-facing text changed

Prepared with AI assistance; every line was reviewed by hand.

… to the $2/$10 standard price

- Add claude-fable-5-1 / claude-mythos-5-1 ($10/$50, cache read $0.25 = 0.025x,
  cache write $12.50). Without a row these requests were stored at $0: the prefix
  rule (`LIKE 'claude-fable-5-1-%'`) cannot fall back to claude-fable-5, and copying
  that row would overcharge cache reads 4x.
- Sonnet 5: Anthropic's pricing page now states the $2/$10 introductory price is the
  standard price and the increase to $3/$15 scheduled for 2026-09-01 will not occur.
  Update the seed and add a repair_current_model_pricing guard so installs seeded at
  3/15/0.30/3.75 are corrected; user-customized rows don't match the old values and
  are left alone.
- Tests: seed values for the three rows; repair guard fixes the old list price and
  keeps a custom price.

Fixes farion1231#7050

Claude-Session: https://claude.ai/code/session_01QG6PopHJCYT9jRTHXUbMHT

@farion1231 farion1231 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

验证通过:合并树对 main(b1250dc7a)零冲突,cargo fmt --check / cargo clippy --all-targets 净,cargo test 2771 项全绿。全部价格数字已逐一对照官方定价页核实,包括 Sonnet 5 「9 月 1 日涨价不会发生」的说明。CI 显示 action_required 是首次贡献者的 workflow 需审批,不是失败。

@farion1231

Copy link
Copy Markdown
Owner

感谢贡献 🎉 几点想说的:

  • 问题抓得准:Fable 5.1 发布第二天就把两个坑一起报上来了——缺 seed 行导致费用记 $0,以及 Sonnet 5 介绍价转正后旧的挂牌价 seed 变成系统性高估 1.5 倍。两条都是所有 Claude 用户都会碰到的。
  • 修在对的层:seed + repair_current_model_pricing 守卫双写,跟仓库里 GPT-5.6 / DeepSeek 的既有模式完全一致;守卫只匹配旧的四个值,用户手改过的行不受影响。Fable 5.1 的缓存读没有照抄 Fable 5 的 $1,而是按官方 0.025x 录 $0.25,这个细节很关键——Claude Code 会话里缓存读占大头。
  • issue 里的诊断是准的:查价的前缀规则是拿短的请求名去找带日期后缀的更长行,所以 claude-fable-5-1 确实回落不到 claude-fable-5,只能补行。

一点期望说明:升级后 Fable 5.1 已经记成 $0 的历史记录会在启动时自动回填;但 Sonnet 5 按 $3/$15 算过的历史记录不会重算(回填只处理费用为 0 的行),所以你那 278 条的合计不会变,只有新记录按 $2/$10 计。

全部价格数字我也逐一对照了官方定价页;合并树上 cargo fmt / clippy / test(2771 项)全绿。这个修复会随下个版本发布,欢迎继续参与!

@farion1231
farion1231 merged commit 460aa8c into farion1231:main Sep 2, 2026
1 check passed
char1eslu pushed a commit to char1eslu/cc-switch that referenced this pull request Sep 3, 2026
… to the $2/$10 standard price (farion1231#7051)

- Add claude-fable-5-1 / claude-mythos-5-1 pricing rows ($10/$50, cache read $0.25 = 0.025x, cache write $12.50). Without a row these requests were stored at $0: the prefix rule only looks for longer dated ids and cannot fall back to claude-fable-5.
- Sonnet 5: Anthropic's pricing page now states the $2/$10 introductory price is the standard price and the September 1 increase to $3/$15 will not occur. Update the seed and add a repair_current_model_pricing guard so installs seeded at 3/15/0.30/3.75 are corrected; user-customized rows are left alone.
- Tests: seed values for the three rows; the repair guard fixes the old list price and keeps a custom price.

Fixes farion1231#7050

(cherry picked from commit 460aa8c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend (Rust/Tauri)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Claude pricing seed: Fable 5.1 / Mythos 5.1 missing; Sonnet 5 seeded at the cancelled $3/$15 list price

2 participants