Repository navigation
Conversation
- 内置兜底价:gemini-4-argon 为 $2 输入 / $10 输出 / $0.10 缓存读取(每百万 token,优惠价有效期至 2026-11-30,2026-12-01 起为 $4 / $20 / $0.20); Cyber 变体(gemini-4-argon-cyber-permissive)不参与优惠,为 $4 / $20 / $0.20, 匹配时先于基础型号判断 - Antigravity 的 -low / -medium / -high 档位名归一到基础价 - 本地价格快照新增两个不带前缀的条目,含 Priority 档价格;所有提示词长度同价, 不带长上下文阶梯;只支持隐式缓存,不带存储价
Go1c
pushed a commit
to Go1c/sub2api
that referenced
this pull request
Oct 14, 2026
- billing_service: 新增 gemini-4-argon($2/$10/$0.10 每百万 token,优惠价至 2026-11-30)与 gemini-4-argon-cyber-permissive($4/$20/$0.20,仅 Vertex)兜底价卡;Cyber 变体先于基础型号匹配 - pricing_service: 引入 normalizeGeminiThinkingTierAlias,Antigravity 的 -high/-low/-medium/-tiered 档位名按基础型号计价 - model_prices_and_context_window.json: 快照新增两个条目(含 Priority 档 1.8 倍价) - 新增档位解析、兜底计费、快照条目三组单测 适配说明:dev 未同步上游 gemini-3.6/3.7/3.8-flash 价卡与显式缓存存储价功能,故未携带 flash 价卡、flash 兜底匹配分支及 CacheStorage 断言;gemini_cache_storage_pricing_test.go 维持 dev 的删除状态。 Upstream-PR: Wei-Shaw#8078 (cherry picked from commit c6c9935)
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.
Refs #8067
为 Gemini 4 Argon 补齐计费。现在代码和远程价格目录里都没有这个模型,请求按 0 元计费。LiteLLM 只收录了带前缀的键(
gemini/…、vertex_ai/…),价格镜像同步不到。价格(每百万 token)
gemini-4-argongemini-4-argon-cyber-permissive(仅 Vertex)gemini-4-argon是优惠价,有效期到 2026-11-30,12-01 起变为 $4 / $20 / $0.20,到时另提 PR 改价。Cyber Permissive 不参与优惠。改动
billing_service.go:加两张兜底价卡。Cyber 变体先于基础型号匹配,避免套用优惠价。pricing_service.go:Antigravity 的-low/-medium/-high档位名按基础型号计价。model_prices_and_context_window.json:本地快照新增两个条目,包含 Priority 档价格。测试
新增档位名解析、兜底计费、快照条目三组单测。
go test -tags=unit ./...通过,golangci-lint v2.14.0检查无问题。