我们已推出 Claude Sonnet 5.5(claude-sonnet-5-5)。它已在 Claude API、Amazon Bedrock 中的 Claude、AWS 上的 Claude Platform、Google Cloud 上的 Claude 以及 Microsoft Foundry 中的 Claude 上可用。关于其上下文窗口、输出限制和价格,请参阅 Claude Sonnet 5.5 模型页面。为 Claude Sonnet 5 编写的代码可能会以五种方式在 Claude Sonnet 5.5 上失效。要关闭预先思考,请在高努力或更低努力下发送 thinking: {"type": "between_tools"} 而不是 "disabled"。强制工具使用(tool_choice 类型 any 和 tool)会返回 400 错误。思考块与模型和对话绑定。在 Claude API 和 Google Cloud 上,不再接受较早的 computer_20251124 计算机使用工具。advisor 工具拒绝 Claude Opus 4.8、Claude Opus 4.7 和 Claude Sonnet 5 作为 advisor。有关每项变更,请参阅 Claude Sonnet 5.5 的新增内容;有关变更前后的请求,请参阅 Claude Sonnet 5.5 迁移指南。有关特定于模型的提示模式,请参阅 Prompting Claude Sonnet 5.5。Claude Sonnet 5.5 生成的思考块仅在生成它们的账户中或在与该账户关联的账户中有效。当另一个账户发送这些块之一时,API 会在模型看到该块之前将其丢弃,并且请求成功。来自较早模型的块不受影响。请参阅保留思考。
We’ve launched Claude Sonnet 5.5 (claude-sonnet-5-5). It’s available on the Claude API, Claude in Amazon Bedrock, Claude Platform on AWS, Claude on Google Cloud, and Claude in Microsoft Foundry. For its context window, output limits, and prices, see the Claude Sonnet 5.5 model page. Code written for Claude Sonnet 5 can break on Claude Sonnet 5.5 in five ways. To turn off up-front thinking, send thinking: {"type": "between_tools"} instead of "disabled", at high effort or below. Forced tool use (tool_choice types any and tool) returns a 400 error. Thinking blocks are tied to the model and the conversation. On the Claude API and Google Cloud, the earlier computer_20251124 computer use tool isn’t accepted. The advisor tool rejects Claude Opus 4.8, Claude Opus 4.7, and Claude Sonnet 5 as advisors. See What’s new in Claude Sonnet 5.5 for each change and the Claude Sonnet 5.5 migration guide for before-and-after requests. For model-specific prompting patterns, see Prompting Claude Sonnet 5.5. Thinking blocks that Claude Sonnet 5.5 produces work only in the account that produced them, or in an account linked to it. When another account sends one of these blocks, the API drops the block before the model sees it, and the request succeeds. Blocks from earlier models aren’t affected. See Preserved thinking.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文