Anthropic 发布新版 SDK 与 ant CLI,默认 API 版本 2026-10-21
New major versions of the Anthropic SDKs and the ant CLI are out today and default to 2026-10-21.
AI 导读
Anthropic 发布新版 SDK 和 ant CLI,默认使用 API 版本 2026-10-21,这是自 2023 年以来首个正式版本发布,2023-06-01 版本未被弃用。该版本从 Messages API 移除 temperature、top_p 和 top_k,assistant 轮次中的 documents 与 user 轮次中的 citations 会返回 400,并替换了部分已弃用的 Admin 和 Enterprise Analytics API 字段。开发者可在 Claude Code 中使用 /claude-api 技能完成更新,或按迁移指南逐项修改。
推荐理由
AI 评分 55
官方列出 API 版本变更与迁移入口,开发者可据此评估现有调用是否需要调整。
主题
正文 · AI 翻译
Anthropic SDK 和 ant CLI 的新主版本今日发布,默认使用 2026-10-21。
你可以在 Claude Code 中使用 /claude-api 技能进行更新,或按照迁移指南逐项了解每项变更:https://t.co/XpOgGm5Fs4