-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
feat(anthropic): migrate 1M context from beta to GA #45550
Copy link
Copy link
Closed
BingqingLyu/openclaw
#650Closed
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Summary
Anthropic has officially moved the 1M context window from Beta to GA (General Availability). This issue tracks the migration to align OpenClaw with the new Anthropic API behavior.
Background
Per Anthropic's announcement (https://www.cnbeta.com.tw/articles/tech/1553412.htm), the following changes are now in effect:
Current Behavior
OpenClaw currently requires explicit opt-in via params.context1m: true:
This injects anthropic-beta: context-1m-2025-08-07 and automatically skips the beta header for OAuth tokens.
Proposed Changes (Minimal/Backward-Compatible)
Phase 1: Remove Beta Header (This Issue)
Phase 2: Default Enable (Future Consideration)
Affected Files
Backward Compatibility
Fully backward compatible - Existing context1m: true configurations will continue to work, just without sending the unnecessary beta header.
Related