# 文档变更分析
## 总体摘要
本次文档更新主要引入了 **Claude Platform on AWS** 这一由 Anthropic 直接在 AWS 基础设施上托管的新平台,并明确了其与 Amazon Bedrock(合作伙伴托管)的区别。同时,文档针对 **Claude Opus 4.7** 进行了更新,正式移除了“扩展思考”,并全面推行“自适应思考”。
## 关键变更主题
* **推出 Claude Platform on AWS**:这是一个全新的部署选项,由 Anthropic 运营但在 AWS 上运行。它使用 AWS Marketplace 计费(通过 CCUs 计费单位),采用与 Claude API 相同的模型 ID,通常能比 Bedrock 更快获得新功能(如 Files API, Prompt Caching 自动缓存等)。
* **平台分类明确化**:文档全面区分了“Anthropic 运营的平台”(Claude API, Claude Platform on AWS, Microsoft Foundry)与“合作伙伴运营的平台”。
* **Claude Opus 4.7 行为变更**:明确在 Opus 4.7 中 `Extended thinking` 已被**移除**,必须使用 `Adaptive thinking`。
* **计费与定价细节**:引入了 Claude Consumption Units (CCU) 作为 AWS 平台的计费单位;明确了 `inference_geo: "us"` 的 1.1x 价格加成;Prompt caching 现已改为工作区级别隔离(而非组织级别)。
* **API 请求与错误处理**:在 Claude Platform on AWS 上,响应现在包含两个请求 ID(AWS 的 `x-amzn-requestid` 和 Anthropic 的 `request-id`),以便于分别进行 CloudTrail 查询和技术支持。
## 影响级别:高
**理由**:
1. **新增部署选项**:Claude Platform on AWS 提供了不同于 Bedrock 的价值主张(功能同步更快、计费模式不同),开发者需要评估是否迁移。
2. **破坏性变更**:对于升级到 Claude Opus 4.7 的开发者,旧的 `extended thinking` 参数将不再可用,代码必须修改为使用 `adaptive thinking`。
3. **计费逻辑变化**:CCU 计费模式和新的限流规则(AWS 平台不支持自动层级提升、无 Priority Tier)直接影响成本估算和架构设计。
## 开发者行动项
* **评估 Claude Platform on AWS**:如果您正在使用 Amazon Bedrock 且深受功能滞后困扰,或希望使用 AWS Marketplace 统一账单,请考虑迁移至 Claude Platform on AWS。
* **更新 Opus 4.7 调用代码**:将代码中的 `thinking: {type: "enabled", budget_tokens: N}` 修改为 `thinking: {type: "adaptive", ...}`,因为 Opus 4.7 已移除扩展思考模式。
* **调整错误处理逻辑**:如果在 Claude Platform on AWS 上开发,请更新日志记录以捕获两个不同的请求 ID(AWS ID 和 Anthropic ID),以便更有效地进行调试。
* **审查 Prompt Caching 策略**:注意 Prompt caching 现在默认按**工作区**隔离(2026年2月5日生效),而非整个组织,这可能影响多工作区环境的缓存命中率。
* **检查限流配置**:若使用 Claude Platform on AWS,请注意该平台不支持 Fast mode 和 Priority Tier,且没有自动的层级提升,需要手动申请限流额度。
💭 Model Reasoning
1. **Analyze the Request:**
* **Role:** World-class programmer analyzing documentation changes.
* **Task:** Analyze a batch of 37 documentation pages (though only ~20 distinct diffs are provided in the prompt text, I need to focus on the provided diffs).
* **Output Format:** Markdown.
* **Content:** Summary, Key Themes, Impact Level with reasoning, Action Items (max 5).
* **Language:** Chinese.
2. **Analyze the Provided Diffs (Page by Page/Section by Section):**
* *Page 1: `about-claude/models/overview.md`*
* Added links to "Claude Platform on AWS" in the model availability list.
* Updated notes to distinguish "Claude Platform on AWS" (Anthropic-operated, same model IDs/API) vs. AWS Bedrock (partner-operated, different IDs).
* Clarified global vs regional endpoint naming/links.
* *Page 2: `about-claude/models/migration-guide.md`*
* Clarified "Extended thinking" is deprecated in 4.6 and *removed* in Opus 4.7. Recommends "adaptive thinking".
* *Page 3: `about-claude/pricing.md`*
* Added "Claude Platform on AWS pricing" section (using CCUs - Claude Consumption Units).
* Renamed "Third-party platform pricing" to "Cloud platform pricing".
* Distinguished between "partner-operated" (Bedrock, Vertex) and "Anthropic-operated on cloud" (Claude Platform on AWS, Foundry).
* Clarified `inference_geo: "us"` pricing multiplier (1.1x).
* *Page 4: `about-claude/model-deprecations.md`*
* Minor table header changes (capitalization consistency).
* *Page 5: `api/overview.md`*
* Added authentication info for cloud platforms (IAM integration).
* Renamed "Third-Party Platform APIs" to "Cloud platform APIs".
* Split table: Added "Claude Platform on AWS" (Anthropic-operated) vs Bedrock/Vertex (Partner-operated).
* Clarified request size limits (Bedrock/Vertex vs Claude API).
* Added note about "Claude Platform on AWS" request IDs (`x-amzn-requestid`).
* *Page 6: `api/client-sdks.md`*
* Updated platform support table to include "Claude Platform on AWS".
* Clarified "Anthropic-operated" vs "Partner-operated".
* *Page 7: `api/rate-limits.md`*
* Added note specific to "Claude Platform on AWS": No spend limits, no auto-tier advancement, no Fast mode/Priority Tier support.
* *Page 8: `api/service-tiers.md`*
* Added note: Claude Platform on AWS supports Standard and Batch, but *not* Priority Tier.
* *Page 9: `api/errors.md`*
* Updated error descriptions for 401/402 to mention AWS Marketplace/Claude Platform on AWS.
* Added section on "Request ID" for Claude Platform on AWS (dual IDs: AWS `x-amzn-requestid` + Anthropic `request-id`).
* Added code examples for Python/TS to read headers on AWS Platform.
* Added specific error for "Outbound web identity federation disabled".
* *Page 10 & 11: `build-with-claude/overview.md` & `build-with-claude/text-generation.md`* (Diffs look very similar/identical in the snippet)
* Updated feature availability tables to include "Claude Platform on AWS" (`claudePlatformAws`).
* Updated "Platform labels" to distinguish Anthropic-operated vs Partner-operated.
* Updated supported model lists for features (e.g., Sonnet 4.6 added to some contexts).
* *Page 12: `build-with-claude/vision.md`*
* Clarified request size limits on "partner-operated platforms" (Bedrock/Vertex).
* Minor token count adjustments (1568 vs 1600).
* *Page 13: `build-with-claude/pdf-support.md`*
* Confirmed PDF support on Claude Platform on AWS.
* Updated section title "Amazon Bedrock PDF Support" to lowercase.
* *Page 14: `build-with-claude/extended-thinking.md`*
* Clarified "Interleaved Thinking" behavior on Claude Platform on AWS (ignores header safely).
* Clarified deprecation of `interleaved-thinking-2025-05-14` header on newer models (Opus 4.7).
* *Page 15: `build-with-claude/streaming.md`*
* Updated code examples to use `Model.ClaudeOpus4_7`.
* Switched from explicit "extended thinking" to "adaptive thinking" in examples.
* Minor grammatical fixes.
* *Page 16: `build-with-claude/prompt-caching.md`*
* Updated code examples (C#) to use `Model.ClaudeOpus4_7`.
* Added "Claude Platform on AWS" to the list of platforms supporting automatic caching.
* Clarified workspace-level isolation (now active as of Feb 5, 2026) for specific platforms.
* *Page 17: `build-with-claude/batch-processing.md`*
* Confirmed "Extended output" (300k tokens) is available on Claude Platform on AWS.
* *Page 18: `build-with-claude/context-windows.md`*
* Minor text refinements ("that is" vs "i.e.", grammar).
* *Page 19: `build-with-claude/context-editing.md`*
* Updated SDK notes (Go, Java, PHP) regarding `tool_runner` support.
* Fixed a math calculation in the example.
* *Page 20: `build-with-claude/search-results.md`*
* Minor code cleanup (removed duplicate line).
* *Page 21: `build-with-claude/structured-outputs.md`*
* Confirmed availability on Claude Platform on AWS.
* Updated Java annotations notes (Swagger Core OpenAPI 3).
* *Page 22: `build-with-claude/effort.md`*
* Clarified "High effort" description (removed "default" tag which seems inconsistent with text elsewhere, clarified "complex reasoning").
* Updated model support list (Sonnet 4.6).
* Updated Opus 4.7 behavior regarding adaptive thinking.
* *Page 23: `build-with-claude/files.md`*
* Confirmed Files API availability on Claude Platform on AWS.
* *Page 24: `build-with-claude/working-with-messages.md`*
* Minor code fix (printing message object).
* *Page 25: `build-with-claude/claude-on-amazon-bedrock.md`*
* Added links to "Claude Platform on AWS" as an alternative/migration path.
* Changed language "AWS Bearer Token" default region to `us-west-2`.
* Updated regional endpoint prefix usage (`us.` instead of just removing `global.`).
3. **Synthesize Findings:**
* **Major Theme 1: Claude Platform on AWS Launch/Integration.** This is the biggest change. The docs are heavily updated to distinguish between:
* **Claude API (Direct):** Anthropic billing.
* **Claude Platform on AWS:** Anthropic-operated, runs on AWS infra, uses CCUs (Claude Consumption Units) for billing via AWS Marketplace, uses standard Anthropic API model IDs.
* **Amazon Bedrock / Vertex AI:** Partner-operated, provider billing, specific model IDs.
* **Major Theme 2: Model Updates & Deprecations.**
* Extended thinking is *removed* in Opus 4.7 (replaced by Adaptive Thinking).
* Adaptive thinking is the standard for Opus 4.7.
* Sonnet 4.6 support added/clarified in various feature matrices.
* **Major Theme 3: Billing & Pricing Nuances.**
* Introduction of CCUs for the AWS platform.
* Clarification on `inference_geo` pricing (1.1x).
* Workspace-level isolation for prompt caching (active Feb 5, 2026).
* **Major Theme 4: API Specifics.**
* Dual request IDs for the AWS platform (AWS ID + Anthropic ID).
* Rate limits differ on the AWS platform (no auto-tier, no Priority tier).
4. **Draft the Response (Internal Monologue/Rough Draft in Chinese):**
* *Summary:* Docs updated to support the launch of "Claude Platform on AWS". Distinguishes it from Bedrock. Also updates for Opus 4.7 (removing extended thinking, adaptive thinking).
* *Key Themes:*
* New platform: Claude Platform on AWS (Anthropic-run, AWS infra, CCU billing).
* Platform categorization: Anthropic-operated vs Partner-operated (Bedrock/Vertex).
* Opus 4.7 specifics: Adaptive thinking mandatory, extended thinking removed.
* Billing/Pricing: CCUs, data residency multipliers.
* Feature parity/matrix updates across many pages.
* *Impact:* High. It's a new deployment option with different billing/limits, plus a breaking change in thinking logic for Opus 4.7.
* *Action Items:*
* If on Bedrock, consider migrating to "Claude Platform on AWS" for feature parity.
* Update code for Opus 4.7: switch from `extended thinking` to `adaptive thinking`.
* Check billing logic if using AWS Platform (CCUs vs raw tokens).
* Update error handling for dual request IDs if on AWS Platform.
* Note prompt caching isolation changes (workspace level).
5. **Refine the Output (Markdown & Formatting):**
* Translate concepts accurately.
* "Claude Platform on AWS" -> 保持英文 (专有名词).
* "CCU" -> Claude Consumption Unit.
* "Extended thinking" -> 扩展思考.
* "Adaptive thinking" -> 自适应思考.
6. **Final Polish (Self-Correction during drafting):**
* *Correction:* Make sure to emphasize *why* Claude Platform on AWS matters—it gives Anthropic control on AWS infra, meaning faster feature rollout than Bedrock but AWS billing.
* *Correction:* The migration guide explicitly says Extended Thinking is *removed* in 4.7, not just deprecated. This is a breaking change for those moving to 4.7.
7. **Final Output Generation** (Matches the provided structure).