anomalyco / anomalyco/models.dev
Add Claude 4 Sonnet with 1M context window [OpenRouter]
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.7k
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 873
Description
Hi team,
## Missing Model Information
**Model**: Claude 4 Sonnet (anthropic/claude-4-sonnet-20250522)
**Context Window**: 1,048,576 tokens (1M)
**Source**: OpenRouter API
**Issue**: TokenLens users are getting incorrect 200K context window instead of 1M
### OpenRouter Model Details
- **Model ID**: `anthropic/claude-4-sonnet-20250522`
- **Max Context Length**: 1,048,576 tokens
- **Provider**: Anthropic via OpenRouter
This model is currently missing from the models.dev database, causing applications using TokenLens to display incorrect context window information.
### Verification
Can be verified at: https://openrouter.ai/models/anthropic/claude-4-sonnet-20250522
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the models.dev database entry point for model metadata and compare the existing Claude 4 Sonnet record with the OpenRouter model details at the linked URL. Done means the anthropic/claude-4-sonnet-20250522 model is present and reports a 1,048,576-token context window instead of 200K.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100