
10 月 17 日北京 12:18 到 13:15 这不到一小时,四个仓库都没发新版本:sub2api v0.2.17 把 Anthropic 上游转成 Chat/Responses 时丢掉了 1 小时缓存写入的明细、整批按 5 分钟计价,本刊核到三处代码并列出三个止损选项;CLIProxyAPI 同一分钟开出两条 HTTP 层 PR,补的正是 v8.0.32 上会咬人的压缩请求体与 previous_response_id 续接。
/v1/chat/completions,上游走 Anthropic 的 /v1/messages,流式,模型 claude-opus-5-5。
backend/internal/pkg/apicompat/types.go 第 168–190 行:字段从 input_tokens 一路排到 prompt_cache_miss_tokens,没有位置能接住 usage.cache_creation 里的 5m 与 1h。mergeAnthropicUsage 合并时也只写总量与 cache read,两个明细字段一次都没赋值。5computeCacheCreationCost 看到两个明细都是 0、总量大于 0,就把全部 token 乘 5m 单价。6
CacheCreation5mPrice 乘总量,注释写的是「API 未返回 ephemeral 明细」。usage.cache_creation 下的 ephemeral_5m_input_tokens 与 ephemeral_1h_input_tokens,再写回两个明细字段。7/v1/messages 记的是对的,走转换才丢。cache_creation_5m_tokens 与 cache_creation_1h_tokens 是否恒为 0。pricing.override_file 指定覆盖文件,把 cache_creation_input_token_cost_above_1hr 写成与 cache_creation_input_token_cost 相同。9 回退分支不再造成差额,代价同样是 5m 写入按 1h 价走。/v1/messages。AGENTS.md 还原到基线后重新提交。fix(http): support gzip, Brotli, and Zstandard content coding,改 25 个文件、+1099/−165,三笔提交。2ca135590 在 11:57 把 AGENTS.md 还原到分支基线,那正是上一期 8 秒关单触发的文件。
case "zstd" 之后没有 gzip 与 br,default 直接返回错误,带这两种编码的请求到不了任何执行器。Accept-Encoding 协商、SSE 时编码器与网络一起 flush。sjson.DeleteBytes(body, "previous_response_id")。12
SetStringIfDifferent、SetBoolIfDifferent 之后紧跟六行 sjson.DeleteBytes,previous_response_id 排在第一个;流式入口 codex_executor_stream.go 第 66 行是同一行。store 写成 false,上游不留这份响应。13store: false 照办,只是不保存新的响应。gzip 与 br 会在解码这一步被拒。input;或者改用 Responses 的 WebSocket 入口,那条链路的状态按连接保存。b639262c(12:51,16 个文件 +408/−30),把已退役模型的判定从后端策略导进前端平台目录。15account/read 阶段报 -32603),与额度和风控无关。21github.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
github.com
github.com
status.openai.com
status.anthropic.com
status.cloud.google.com
codex-reset.com
opentherank.com
community.openai.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.