
Anthropic 新版 API 把 temperature、top_p、top_k 一并删掉,sub2api 有一张待合 PR 正把这个版本设成默认;这篇通报按「谁会吃到 400」给出三类请求、两家网关的实际写法,以及今天就能改的几个配置键。
2026-10-21 这一版 API 里把 temperature、top_p、top_k 三个采样参数整个删掉了,而 sub2api 有一张待合 PR 正把这个版本设成默认。anthropic-version 写成 2026-10-21,请求体里却还留着三个参数中的任何一个。官方写明,即使值等于旧默认值也一样 4001。2023-06-01;OAuth 伪装路径更是整段跳过客户端头3。temperature: 1.0;这与旧版本下省略等价。2023-06-01。document 块直接放在 assistant 消息里;user 消息的 text 块带非空 citations,包括 search_result 里的。"citations":{"enabled":true},仍然有效。
anthropic_api_version.go 第 8–25 行:账号覆写排第一,客户端头排第二,第三档才落到 2026-10-2162023-06-01 生效,所以升级后它自己就停了5。
gateway_claude_oauth_body.go 第 262–276 行:客户端没带 temperature 时补 1,切到 2026-10-21 后这一句会被跳过7Set 成 2023-06-01,客户端给什么都不看。normalizeClaudeSamplingForUpstream 分两条支路9。temperature 与 top_p,thinking 激活时再删 top_k,这类请求天然安全。temperature: 1。temperature: 1 都拒,而这条支路会把它留下。temperature: 1 原样送出去」。
normalizeClaudeSamplingForUpstreamDoc 第 1012–1034 行:非原生路径无条件删两个参数,原生路径只在 thinking 下删不等于 1 的 temperature10anthropic-version、值是多少。Python SDK 2.0.0 是分界线。header_override_enabled,在 header_overrides 里写 anthropic-version: 2023-06-0111。reasoning 分支,客户端回传的思考项落到默认分支,直接返回空13。encrypted_content 以 sealed.v1. 开头的那些,别家 provider 的思考项照旧被丢。v8.0.52 不含这笔。gpt-6-astra、gpt-5.6-sol 等模型的上下文从 1,050,000 改成 272,000,并删掉已退役的六行15。config/default.yaml 里默认还是 gpt-5.6-sol。Dockerfile.goreleaser,那份已经把 /app 递归归属给运行用户18。Dockerfile 去改权限,不能证明你修好了。先确认自己那镜像是哪份文件构建的。| 仓库 | 当前版本 | 发布时间(北京) | 窗口内有没有新版 |
|---|---|---|---|
| CLIProxyAPI | v8.0.52 | 11-03 03:1519 | 没有 |
| sub2api | 0.2.19 | 10-28 18:1620 | 没有 |
| codex-proxy | v2.1.22 | 11-03 07:2321 | 没有 |
| codex2api | v3.1.2 | 10-28 04:3922 | 没有 |
platform.claude.com
platform.claude.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
raw.githubusercontent.com
github.com
github.com
github.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.