Repository navigation
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 intoSep 2, 2026
Conversation
… 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
approved these changes
Sep 2, 2026
farion1231
left a comment
Owner
There was a problem hiding this comment.
验证通过:合并树对 main(b1250dc7a)零冲突,cargo fmt --check / cargo clippy --all-targets 净,cargo test 2771 项全绿。全部价格数字已逐一对照官方定价页核实,包括 Sonnet 5 「9 月 1 日涨价不会发生」的说明。CI 显示 action_required 是首次贡献者的 workflow 需审批,不是失败。
Owner
|
感谢贡献 🎉 几点想说的:
一点期望说明:升级后 Fable 5.1 已经记成 $0 的历史记录会在启动时自动回填;但 Sonnet 5 按 $3/$15 算过的历史记录不会重算(回填只处理费用为 0 的行),所以你那 278 条的合计不会变,只有新记录按 $2/$10 计。 全部价格数字我也逐一对照了官方定价页;合并树上 |
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)
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.
Summary / 概述
Sync the Claude rows of
seed_model_pricingwith Anthropic's official pricing page: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 toclaude-fable-5, and copying that row would overcharge cache reads 4x (cache reads dominate Claude Code sessions).repair_current_model_pricingguard 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).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 typecheckpasses / 通过 TypeScript 类型检查 — n/a, no frontend changepnpm format:checkpasses / 通过代码格式检查 — n/acargo clippypasses (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).Prepared with AI assistance; every line was reviewed by hand.