-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Invalid Context Limit with Claude 4 #2871
Description
Describe the bug
Note: Please check the common issues on https://block.github.io/goose/docs/troubleshooting before filing a report
When using claude-sonnet-4 and claude-opus-4, I noticed that the Context Limit was set to 32k.The MODEL_SPECIFIC_LIMITS map seems to be incorrect.
To Reproduce
I use LiteLLM as a backend and provide access to the bedrock anthoripic model with the model name claude-sonnet-4.
Goose's provider is OpenAI.
The same issue may occur if you use the anthropic provider and set the model name to claude-sonnet-4-20250514.
Expected behavior
I would expect the context limit to be 200k
Screenshots
If applicable, add screenshots to help explain your problem.
Please provide following information:
- OS & Arch: MacOS
- Interface: CLI
- Version: 1.0.26
- Extensions enabled: Developer
- Provider & Model: Claude Sonnet 4
Additional context
Add any other context about the problem here.