feat: support 1M-token context for Claude Sonnet 4; raise defaults to 1,000,000#21
Merged
Conversation
Contributor
PR Reviewer Guide 🔍(Review updated until commit e0cfa92)Here are some key observations to aid the review process:
🤖 Auto-approved PR Reason: AI recommends approval with high confidence and security This PR meets all auto-approval criteria. |
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.
PR Type
Enhancement
Description
• Updated Claude Sonnet 4 context limit to 1M tokens
• Raised default
max_model_tokensconfiguration to 1,000,000• Updated documentation examples and GitHub Action defaults
• Enhanced model capabilities for processing larger contexts
Changes walkthrough 📝
__init__.py
Update Claude Sonnet 4 context limitpr_agent/algo/init.py
• Increased Claude Sonnet 4 context limit from 200K to 1M tokens
•
Added explanatory comment about 1M context support
README.md
Update documentation for 1M token defaultsREADME.md
• Updated GitHub Actions workflow example to use 1M tokens
• Changed
documentation table default from 100K to 1M tokens
• Updated
.pr_bot.tomlconfiguration exampleaction.yaml
Update GitHub Action default token limitaction.yaml
• Changed default
max_model_tokensinput from 100K to 1Mconfiguration.toml
Raise global token limit configurationpr_agent/settings/configuration.toml
• Increased global
max_model_tokensfrom 175K to 1M• Updated comment
to reference Claude Sonnet 4 long context