[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"news-slug-claude-api-drops-sampling-parameters":3,"topics-all":38,"news-related-80f2857b-c264-4974-b20a-d8d4abdd82ad":57},{"id":4,"title":5,"summary":6,"content":7,"original_url":8,"source_id":9,"tags":10,"translations":24,"news_slug":31,"published_at":32,"created_at":33,"modified_at":34,"is_published":35,"publish_type":36,"image_url":14,"view_count":37},"80f2857b-c264-4974-b20a-d8d4abdd82ad","Claude API 三年来首次改版:采样参数直接拔掉","Anthropic 发布三年来首个 Claude API 新版本 2026-10-21:temperature、top_p、top_k 整体移除,发送即 400,默认值也一样。七个官方 SDK 与 ant CLI 同步升大版本,认证改 Bearer,许可证换 Apache 2.0。旧版未弃用,官方称后续版本更频繁。","三年只更新过一次版本号的 Claude API,在 2026 年 10 月 21 日迎来断代式改版:Anthropic 发布了 2023-06-01 之后的第一个新版本 2026-10-21,做的第一件事就是把 temperature、top_p、top_k 三个采样参数连根移除——请求里只要带上其中任何一个,直接返回 400。\n\n## 采样参数被移除,不是被忽略\n\n按照官方版本页的说明,新版本对三个采样参数的处置是移除而非忽略:发送 temperature、top_p 或 top_k 中的任何一个,在所有模型上都返回 400 错误,即便传的是默认值也一样。不带这些参数时,请求按默认采样行为运行,相当于旧版本里 temperature 设为 1.0 且不传任何采样参数。\n\n对 Claude 4.7 及之后的模型,行为没有任何变化——它们本来就只接受默认值。真正的痛点在 Claude Sonnet 4.6 这类仍接受自定义值的模型上:过去靠调低 temperature 换取稳定输出的代码,升级后彻底失去这个控制,官方也没有提供替代参数,这类调用只能继续钉在 2023-06-01 上。\n\n同一版本还收紧了消息校验:document 块直接放进 assistant 消息返回 400,user 消息里带非空 citations 数组的 text 块同样报错。Admin API 一侧则是一串字段改名:roles 换成 role_ids,group_id 换成 rbac_group_id,API key 响应里的 workspace_id 变成了 scope 对象。\n\n## 八个官方库同步断代\n\n这次发布不止改协议。Python、TypeScript、C#、Go、Java、PHP、Ruby 七个官方 SDK 加上 ant CLI 同步升到大版本(Python 2.0.0、TypeScript 1.0.0),默认就走新版本。三个连带变化值得注意:\n\n- **认证头换了**:SDK 改用 Authorization: Bearer 发送密钥。API 本身两种头都接受,但任何读取 X-Api-Key 的代理或网关会直接看不到密钥。\n- **许可证换了**:新版本 SDK 与 CLI 改用 Apache 2.0,旧版本维持 MIT。\n- **Text Completions 下线**:TypeScript、Go、Java、Ruby SDK 和 CLI 里的旧补全接口整体移除。\n\n亚马逊 Bedrock 上,新版本只支持 Claude 4.7 及之后的模型,老模型工作负载需要留在旧 SDK 组合上。官方还随版本发布了一个 \u002Fclaude-api 技能,帮 Claude Code 定位受影响的调用点。\n\n## 版本号进入节奏化时代\n\n旧版本 2023-06-01 并未弃用,钉住它的集成可以继续运行。但按 AlphaSignal 的报道,Anthropic 计划未来更频繁地发布 API 版本,让破坏性变更按既定节奏、赶在新模型发布前落地——三年一版的静止期结束了。\n\n这件事我更愿意读成一次表态:推理模型时代,模型自己在内部决定怎么思考,外部那几个采样旋钮早已名不副实,与其留着误导开发者,不如干脆收走。对开发者来说,这周真正值得做的是全库检索一遍 temperature,顺便看看网关读的是哪个认证头——下一次断代,大概率不会再等三年。\n\n参考:[Anthropic API 版本页](https:\u002F\u002Fplatform.claude.com\u002Fdocs\u002Fen\u002Fapi\u002Fversioning)","https:\u002F\u002Fplatform.claude.com\u002Fdocs\u002Fen\u002Fapi\u002Fversioning","1fa87d30-d9f3-4752-b3be-0373933b3aaf",[11,15,18,21],{"id":12,"name":13,"slug":13,"description":14,"color":14},"40269b40-7942-4650-9672-ed2e6524d37a","ai-technology",null,{"id":16,"name":17,"slug":17,"description":14,"color":14},"23544f6a-eea1-4f05-aa8d-749ca862d5d2","anthropic",{"id":19,"name":20,"slug":20,"description":14,"color":14},"dca4d0ab-7994-43a7-839e-7756fc77344a","claude",{"id":22,"name":23,"slug":23,"description":14,"color":14},"01598627-1ea6-4b27-a5d8-874971571a71","llm",[25],{"id":26,"lang":27,"title":28,"summary":29,"content":30},"e5e3459f-6ca9-48c7-be9a-9e51f3852308","en","Claude API drops temperature in first version since 2023","Claude API version 2026-10-21 is Anthropic's first since 2023: temperature, top_p and top_k now return 400. Seven SDKs and ant CLI ship new majors.","The Claude API, which went more than three years without a new version, just had a generational rewrite: on October 21, 2026, Anthropic released version 2026-10-21, its first since 2023-06-01, and the first thing it did was remove the temperature, top_p and top_k sampling parameters outright — any request carrying any of them now returns a 400.\n\n## Sampling parameters are removed, not ignored\n\nPer the official versions page, the new version treats the three sampling parameters as removed rather than ignored: sending temperature, top_p or top_k returns a 400 error on every model, even when the value is the former default. Without them, requests run with the default sampling behavior, equivalent to a 2023-06-01 request with temperature 1.0 and no sampling parameters.\n\nFor Claude 4.7 and later models nothing changes — they already accepted only the defaults. The real pain sits with models that still accept custom values, such as Claude Sonnet 4.6: code that lowered temperature for steadier output loses that control entirely, Anthropic provides no replacement setting, and those calls must stay pinned to 2023-06-01.\n\nThe same version tightens message validation: a document block placed directly in an assistant message returns a 400, and a text block with a non-empty citations array in a user message errors too. On the Admin API side, a batch of fields are renamed: roles becomes role_ids, group_id becomes rbac_group_id, and workspace_id in API key responses becomes a scope object.\n\n## Eight official libraries break at once\n\nThis release is more than a protocol change. Seven official SDKs — Python, TypeScript, C#, Go, Java, PHP, Ruby — plus the ant CLI jumped to new majors (Python 2.0.0, TypeScript 1.0.0) that send the new version by default. Three knock-on changes stand out:\n\n- **The auth header changed.** SDKs now send keys as Authorization: Bearer. The API itself accepts both headers, but any proxy or gateway reading X-Api-Key simply stops seeing the key.\n- **The license changed.** The new SDKs and CLI are Apache 2.0; earlier versions remain MIT.\n- **Text Completions is gone.** The legacy completion endpoints were removed from the TypeScript, Go, Java and Ruby SDKs and the CLI.\n\nOn Amazon Bedrock the new version supports only Claude 4.7 and later, so older-model workloads need to stay on an older SDK combination. Anthropic also shipped a \u002Fclaude-api skill that helps Claude Code locate affected call sites.\n\n## Versioning gets a cadence\n\nThe old 2023-06-01 version is not deprecated; integrations pinned to it keep running. But as AlphaSignal reports, Anthropic plans to release API versions more frequently, putting breaking changes on a defined schedule ahead of model launches — the era of one version every three years is over.\n\nI read this as a statement of intent. In the reasoning-model era, the model decides internally how to think, and the external sampling knobs have long been nominal; rather than leave them to mislead developers, Anthropic took them away. For developers, the genuinely useful move this week is to grep the whole codebase for temperature and check which auth header the gateway reads — the next breaking change will almost certainly not wait another three years.\n\nReference: [Anthropic API versions page](https:\u002F\u002Fplatform.claude.com\u002Fdocs\u002Fen\u002Fapi\u002Fversioning)","claude-api-drops-sampling-parameters","2026-10-24T15:13:40Z","2026-10-24T15:14:44.742751Z","2026-10-24T15:14:44.742762Z",true,"agent",34,[39,48],{"slug":40,"tag_slug":40,"title_zh":41,"title_en":42,"intro_zh":43,"intro_en":44,"id":45,"is_active":35,"created_at":46,"modified_at":47},"ai-for-science","AI for Science 2026：从 UniPert 到 GPT-Rosalind 的硬核进化","AI for Science 2026: from UniPert to GPT-Rosalind","生命科学、化学材料、物理世界模型——AI 正在从\"语言工具\"变成\"实验伙伴\"。本专题收录 AI 在三大科学方向的关键节点：UniPert 统一基因与化学扰动空间、GPT-Rosalind 端到端生命科学推理、达摩院 AI 智能体 28 小时找到 4 种超导新材料、Anthropic Claude Science 把工作台做成标准品。","From language tool to lab partner — AI is reshaping life sciences, chemistry\u002Fmaterials, and physical world models. This topic covers the key milestones: UniPert unifying genetic-chemical perturbation spaces, GPT-Rosalind's end-to-end life-sciences reasoning, DAMO's AI agent discovering 4 superconducting materials in 28 hours, and Anthropic's Claude Science workbench going mainstream.","988a4300-5fab-41c4-b5d8-63711a2dc757","2026-09-10T01:34:15.296649Z","2026-09-10T01:34:15.296663Z",{"slug":49,"tag_slug":49,"title_zh":50,"title_en":51,"intro_zh":52,"intro_en":53,"id":54,"is_active":35,"created_at":55,"modified_at":56},"h3-series","MiniMax H3 系列：从开源权重到 35 倍吞吐","MiniMax H3 Series: from open weights to 35x throughput","MiniMax H3 自 2026 年 8 月开源以来节奏密集：官方把生成、参考与编辑收回一个模型；ComfyUI 当天压进 RTX 3060；摩尔线程 3 小时完成国产 GPU 适配；fal 后训练版把吞吐拉到 35 倍；FastH3 蒸馏再砍推理成本。本专题持续追踪 H3 的发布—开源—蒸馏—部署全链路。","Since MiniMax open-sourced H3 in August 2026 the pace has been relentless: one unified omni-modal model, same-day ComfyUI support down to an RTX 3060, a 3-hour Day-0 port to Moore Threads GPUs, fal's post-trained H3 Max at 35x throughput, and FastH3 distillation cutting inference cost further. This topic tracks the full H3 chain — release, open weights, distillation, deployment.","83ef0daa-3c31-4cb3-86ed-e5ee58654d5f","2026-09-08T07:33:19.942193Z","2026-09-08T07:33:19.942209Z",{"items":58},[59,64,69,74,79,84],{"id":60,"title":61,"news_slug":62,"published_at":63},"489f9b2f-75f7-461b-b7c7-f440174122e2","Anthropic 为 Claude 代理加入「梦境」机制：跨会话记忆终于实现了","anthropic-claude-dreaming-cross-session-memory","2026-05-06T22:00:00+00:00",{"id":65,"title":66,"news_slug":67,"published_at":68},"c6649b4f-363e-4f94-a2bb-96bd39402dd4","83% 攻击率:Anthropic 复盘出的动量假说","mythos-5-momentum-attack-rate-alignment-assessment","2026-10-24T09:15:00+00:00",{"id":70,"title":71,"news_slug":72,"published_at":73},"1a35c9e0-bb94-424a-a969-416e25441c0b","Claude 给 123 个开源库写了形式化证明:239 个入口点不再崩溃","claude-formal-verification-risc-v-proofs","2026-10-23T07:16:36+00:00",{"id":75,"title":76,"news_slug":77,"published_at":78},"a7a8ca05-6134-4b27-8dc0-ae3c0a764630","Claude 自主设计量子电路:53 小时拿到一个数量级提速","claude-quantum-circuit-redesign","2026-10-19T10:00:00+00:00",{"id":80,"title":81,"news_slug":82,"published_at":83},"2c1d70a6-02aa-4b17-9413-a8663216baf6","Anthropic 网络验证改三层:Glasswing 并入","anthropic-glasswing-cyber-verification-tiers","2026-10-15T09:10:00+00:00",{"id":85,"title":86,"news_slug":87,"published_at":88},"acddc7d5-c389-4e90-8a7a-1001ce693395","Anthropic 反蒸馏到第三层:误拦也要收费,合法用户背成本","anthropic-distillation-shields-claude-paywall-blocks","2026-10-14T03:00:00+00:00"]