
CLIProxyAPI v8.0.47 把「流没吐终局帧」当上游拒绝处理,一条 502 会连着冷却池里每把 key 最后回 503;修法只在 dev,今晚能自己动手的是给这类 provider 加 request-scoped-errors 或直接拆池。
| 仓库 | 当前版本 | 发行页最后变动(北京) |
|---|---|---|
| CLIProxyAPI | v8.0.47 | 10-29 08:32 1 |
| sub2api | 0.2.19 | 10-28 18:16 2 |
| codex-proxy | v2.1.21 | 10-28 04:48 3 |
| codex2api | v3.1.2 | 10-28 04:40 4 |
[DONE] 之前断开」从凭证健康里摘出来,发行版还没有。auth-dir 写成相对路径时,冷却状态文件会落进 auths/auths/ 这样的嵌套目录。openai-compatibility 这类自定义上游。[DONE] 就把连接关了。upstream stream closed before [DONE],后面这套判定就是照它做的 5。max-retry-credentials: 0 的含义正是「试遍所有可用凭证」7。503 auth_unavailable。upstream stream closed before [DONE] 这整句。GET /v8/management/credentials 的 cooldowns 里有一批几乎同时到期的凭证级条目 910。next_retry_after 时间几乎重合。
openai_compat_executor.go 第 614–636 行:第 620–623 行判定下游是 Responses 或 Claude 协议、且没等到终局帧,第 624 行造出 502,随后经 out 通道交给上层。这一版的 statusErr 只带状态码与消息;第 637 行起才是「其它协议兼容不吐 [DONE] 的上游」那条路。5f013eb66。statusErr 补上 streamTruncated: true。同一笔里另有一个测试文件。openai-compatibility 这条路径漏了 12。stream_truncated 13。isRequestInvalidError 第一件事就是查这个标记,命中即 return true。
conductor_cooldown.go 第 2756–2774 行(提交 f013eb66):第 2763–2766 行先判截断标记,注释写明生成已经提交、不得换凭证重放;第 2768 行起才是原来的请求级判定。15stream_truncated 这个 code,能按它统计 16。90c447d3,这次改动只在 dev。openai-compatibility 条目里补一段: request-scoped-errors:
- status: 502
match:
- "upstream stream closed before [DONE]"
action: "stop"stop 会把错误码改成请求级,冷却与重放同时跳过,效果与 dev 那笔一致 17。match 是区分大小写的子串匹配 18。
config.example.yaml 第 896–908 行:request-scoped-errors 挂在 provider 条目下,样例用 status: 400 加两个上下文超限的子串、action: "stop"。要拦这次这条,把状态改成 502、把子串换成那句截断消息。18transient-error-cooldown-seconds 设成 -1,408、500、502、503、504、520–526 都不再冷却。代价是真正坏掉的 key 也不会自动下线,会被反复选中。.cds 落在 auths/auths/routing.cooldown.save-cooldown-status 要开着,默认是关的 6。auth-dir 写成相对路径,例如 Docker 里常见的 auths。<auth-dir>/<name>.json,也就是 auths/claude.json。auths/auths/claude.cds。
cooldown_state.go 第 281–296 行:第 286 行的条件要求 filepath.IsAbs(authFile) 成立才走 filepath.Rel 剥离;第 291–293 行遇到相对路径就把整串当相对路径返回。20filepath.Rel。find <auth-dir> -name '*.cds' -mindepth 2。auth-dir 写成绝对路径。/api/v1/mcp:走 OAuth 授权、发短效访问令牌、每个请求都校验用户与管理员角色。249_mcp_oauth.sql 与 MCP_PUBLIC_URL。codex.exe 上传约 1.33 MB/s、下行约 12 KB/s,帖主按速率折算每小时约 4.8 GB,并说在同一项目里新建对话后回落 26。帖主是普通用户,帖子 17 次浏览、2 条回复,数字来自一张资源监视器截图与自己的换算。[DONE] 的 provider 加 request-scoped-errors(状态 502、命中 upstream stream closed before [DONE]、动作 stop);或把这类 provider 从多 key 池里拆出来。GET /v8/management/credentials 的 cooldowns 里有没有一批同时到期的凭证级条目;find <auth-dir> -name '*.cds' -mindepth 2 看冷却文件有没有落进嵌套目录。f013eb66),tag 与 main 还是 90c447d3。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
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
community.openai.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.