Repository navigation
fix: correct Sonnet 5.5 cache read fallback pricing - #8381
Merged
Wei-Shaw merged 1 commit intoNov 10, 2026
Merged
Conversation
|
@Wei-Shaw 这个sonnet缓存读的计费bug需要合并一下,现在是0.2 应该是0.1 |
Contributor
Author
|
@YifeiLu-1,谢谢提醒。我核对了当前默认的 model-price-repo main,Sonnet 5.5 的 cache-read 已是 $0.10/MTok;Sub2API 默认会在启动时及每 10 分钟检查远端价格目录哈希。PR 描述已更新:本 PR 对齐本仓内置目录和硬编码 fallback,不修改外部镜像。 若你的实例使用默认 remote_url/hash_url 且完成一次同步后仍显示 $0.20,麻烦贴出 [Pricing] 同步日志并脱敏其中的敏感值。这个 PR 当前检查均通过,仍待维护者 review。 |
|
@r266-tech 感谢解答,我找了一个最新的sonnet计价,cache-read价格已经更新了 |
hjkl950217
added a commit
to hjkl950217/sub2api
that referenced
this pull request
Nov 6, 2026
Co-Authored-By: Claude Code <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Correct Sonnet 5.5 cache-read fallback pricing to $0.10 per million tokens in the embedded catalog and both service fallbacks, matching Anthropic's pricing. Related to #8378.
Scope
As of 2026-11-03, the default remote catalog in Wei-Shaw/model-price-repo main reports cache_read_input_token_cost = 1e-7 for claude-sonnet-5-5 (main HEAD c19ce601e5391182eff9add6bcd4bd82e2691007). Sub2API checks the default remote catalog hash at startup and every 10 minutes. This PR aligns this repository's embedded catalog and hard-coded fallback for deployments that use those fallbacks; it does not update the separate mirror or recalculate historical charges.
Verification
go test ./internal/service: passed (218 seconds).