feat(anthropic): migrate 1M context from beta to GA#650
Open
BingqingLyu wants to merge 4 commits intomainfrom
Open
feat(anthropic): migrate 1M context from beta to GA#650BingqingLyu wants to merge 4 commits intomainfrom
BingqingLyu wants to merge 4 commits intomainfrom
Conversation
Anthropic has officially moved the 1M context window from Beta to GA (General Availability). This change aligns OpenClaw with the new API behavior: - Remove context-1m-2025-08-07 beta header injection - Remove OAuth token skip logic for 1M beta (no longer needed) - Keep context1m param for backward compatibility Closes openclaw#45550
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes openclaw#45550
Summary
Anthropic has officially moved the 1M context window from Beta to GA (General Availability). This PR aligns OpenClaw with the new API behavior.
Changes
context-1m-2025-08-07beta header injection (no longer required)context1m: trueparam for backward compatibilityBackward Compatibility
context1m: truecontinue to workPhase 2 Strategy (Future)
As discussed in openclaw#45550, we will keep
context1m: trueas an explicit opt-in even after this PR. Default-enabling 1M context could surprise cost-sensitive users due to increased token consumption.Testing
Related