-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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.
https://github.com/block/goose/blob/main/crates/goose/src/model.rs#L23-L25
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.