
新模型 gpt-6.1-terra 官宣当天,两家网关都还没接上:CLIProxyAPI 认不出这个名字会回 400,sub2api 认得名字却拿不到价、按零成本记账;这篇给出补名字与补价两条路,并更正上一期那条不成立的 429 重试建议。
gpt-6.1-terra 补支持。1 它对应的适配请求一小时前就到,2 而模型本身,OpenAI 那边北京同一天已经挂出公告。3gpt-6.1-terra。3gpt-6.1-terra。内置目录里四档 Codex 名单(free、team、plus、pro)都没有它,各档条数是 4、8、8、8。4gpt-5.6-terra。5unknown provider for model gpt-6.1-terra。7
sdk/api/handlers/handlers_routing.go 第 196–226 行:第 201 行向注册表要 provider,第 207 行是「整名再试一次」的兜底,第 211 行 len(providers) == 0 命中后就组错误体,第 220 行写 unknown provider for model,第 225 行以 400 返回。7models.codex-catalog 指到一份自己维护的目录文件,把名字补进四档 Codex 名单。8 第三条:给这个上游建一条 openai-compatibility 别名。gpt-5.6-terra。9ErrModelPricingUnavailable。代码注释把那叫 fail-closed。10openai_usage.pricing_missing_record_zero_cost),然后按零成本记账。11gpt-6.1-terra 放进来,这条流量是白送的。对按量卖的站,这比报错更贵。
backend/internal/service/billing_service.go 第 1450–1470 行:第 1456 行取硬编码兜底价,第 1462 行命中才返回,第 1466 行两处都没有就带上 ErrModelPricingUnavailable 退出。10
wucm667/sub2api@feat/issue-8363-gpt61-terra 的 backend/internal/pkg/openai/constants.go 第 200–240 行:第 220 行新增 IsGPT61TerraModelSpelling,第 230 行的档位名单含 max,第 237–239 行把 terra 并进「工具调用必须走 Responses」那条判断。1pricing.override_file 指一份 JSON,写明这个模型的 token 价,下一次哈希检查就加载,不用重启。12request_retry: 2、max-retry-interval: 600,实际每 11 秒一轮。上游给的 Retry-After 从 174 掉到 162 再到 150 秒,三次都撞在窗口里,客户端 23 秒后拿到 429。13max-retry-interval 是上限,不是等待值。真正决定等多久的是冷却,而「这张凭证本轮已经因 429 失败过」时,等待被抬到至少 10 秒。14Retry-After 的函数只认 body 里 type 为 usage_limit_reached 的那种 429。16 这次的 turn_rate_limit_exceeded 不在其中,所以那个头从没进过本地的等待值。
sdk/cliproxy/auth/conductor_selection.go 第 1306–1322 行:第 1309–1310 行注释写明「本轮已经用这张凭证试过并且是 429,不许触发零等待的下一轮」,第 1313 行与第 1316–1317 行把等待抬到 minQuotaCooldownFloor(10 秒)。14oauth.request-scoped-errors.codex 里加一条规则,状态码 429、匹配 Codex is at capacity、动作 stop。17 键名注意:老写法 oauth-request-scoped-errors 会被自动迁移到 oauth.request-scoped-errors。18gpt-6.1-sol 从这张号上摘掉、换 gpt-6-astra。1f917e77,dev 头走到 10 月 27 日 2 点 37 分 c3767123,未发版。21pricing.override_file 先写一行价。不写就是零成本记账,事后查不出来。max-retry-interval」那条请划掉。要么改用 request-scoped-errors 加 stop 让本地别记账,要么按凭证把 gpt-6.1-sol 摘掉。github.com
github.com
openai.com
github.com
raw.githubusercontent.com
github.com
github.com
github.com
raw.githubusercontent.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
status.openai.com
status.claude.com
status.cloud.google.com
codex-reset.com
codex-reset.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.