
10 月 17 日北京 07:44 到 08:47 这六十多分钟里,四个仓库都没发新版本、四条主干也没有新提交:sub2api 正在给 Grok 4.7 Fast 按一半的价记账,修价 PR #8170 已开,不等版本也能改一处价格配置把账对上;CLIProxyAPI 同一作者连开三张单,分别对着 schema 展开的指数级开销、省略 thinking 时缺 block_binding、以及 no-reasoning 请求被写成 disabled 这三处。
grok-4.7-fast 记账或结算,提示词不到 200k 的每一笔都少收一半,跨过 200k 的每一笔少收三分之一。| 提示词长度 | 输入 | 缓存读取 | 输出 |
|---|---|---|---|
| < 200k | $4 / 1M | $1 / 1M | $12 / 1M |
| ≥ 200k(整次请求) | $6 / 1M | $1.50 / 1M | $18 / 1M |
pricing.fallback_file 指向的本地快照;第二级是编译进程序的兜底价表。
backend/internal/service/billing_service.go:第 1272 行起的 switch 里没有 fast 这一支;第 1295–1296 行的注释写着「不认识的 Grok 文本 ID 一律继承当前默认价卡,这样新模型不会无价上线」;第 1304–1308 行的 grokUnknownTextFamilyFallback 返回的正是 grok-4.6。照这个行号就能核你手里那一版1112deploy/config.example.yaml 里写得很清楚:fallback_file「只补目录缺失的模型」,override_file 优先级最高,两者的修改都在下一次哈希检查时按内容哈希自动重载,无需重启14。"grok-4.7-fast": {
"input_cost_per_token": 4e-06,
"cache_read_input_token_cost": 1e-06,
"output_cost_per_token": 1.2e-05,
"input_cost_per_token_above_200k_tokens": 6e-06,
"cache_read_input_token_cost_above_200k_tokens": 1.5e-06,
"output_cost_per_token_above_200k_tokens": 1.8e-05,
"max_input_tokens": 500000,
"mode": "chat",
"litellm_provider": "xai",
"supports_prompt_caching": true
}Fixes #811916。| 项目 | 值 |
|---|---|
| 编号与标题 | #8170 fix(billing): Grok 4.7 Fast 按官方 Fast 价卡计费 (#8119) |
| 作者与头分支 | StarryKira,fork StarryKira/sub2api 的 fix/issue-8119-grok-fast-pricing16 |
| 状态 | open、非 draft、与 main 无冲突、1 笔提交、页面上没有评论16 |
| 改动规模 | 4 个文件、+120/−0,其中两个是测试文件16 |
| 关联单 | #8119,10 月 15 日开,仍 open、0 评论13 |
grok-4.7-fast 条目,长上下文阈值 200k、倍率 1.516。
grok-4.7-fast 价卡,输入 4e-6、缓存读 1e-6、输出 12e-6,阈值 200000 且含端点,长上下文两个倍率都是 1.5;紧接着的第 997 行是原来的 grok-4.3 条目,可见它插进了既有序列17grokSupportsReasoningEffort 不认这个名字,转发时会删掉 reasoning effort16。$ref 重新展开一次,只防环,不记忆,也不设预算。applyClaudePreservedThinkingBinding 只在请求体里显式带 thinking.type 时,才注入 block_binding.prefix_mismatch_behavior: "drop_block"19。thinking 就等于走 adaptive,与显式写 {"type":"adaptive"} 等价19。thinking.type: adaptive,就能绕开。reasoning_effort: "none",或 thinking 预算为 0)时,Claude 的档位 applier 一律写 thinking: {"type":"disabled"}20。between_tools;Opus 5.5 关不掉 thinking,正确做法是省略 thinking 并降低 effort;Fable 5 与 5.1 在任何档位都拒20。reasoning_effort: "none" 的 OpenAI 兼容客户端都会稳定吃到 40020。
internal/thinking/provider/claude/apply.go:第 87–96 行是 ModeNone 分支,第 88 行无条件把 thinking.type 写成 disabled,随后删掉 budget、display 与 effort;直到下面第 98 行起的 ModeLevel 分支,才有按模型能力分开处理的逻辑25reasoning_effort: "none" 或 0 预算;Sonnet 5.5 改用 between_tools,Opus 5.5 与 Fable 5/5.1 走省略 thinking 加降低 effort 的路子20。github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
docs.x.ai
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
status.openai.com
status.openai.com
status.anthropic.com
status.cloud.google.com
codex-reset.com
opentherank.com
community.openai.com
community.openai.com
reddit.com
reddit.com
github.com
github.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.