anomalyco / anomalyco/models.dev

Add Claude 4 Sonnet with 1M context window [OpenRouter]

Open
#210 2 comments 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.