-
Notifications
You must be signed in to change notification settings - Fork 408
Closed
Description
Summary
The model registry in pi-ai/dist/models.generated.js has claude-sonnet-4-5 with contextWindow: 200000 (200k tokens), but according to Anthropic's documentation, Sonnet 4.5 supports 1 million tokens of context.
Current value
"claude-sonnet-4-5": {
contextWindow: 200000, // Should be 1000000
maxTokens: 64000,
}Impact
This causes auto-compaction to trigger at ~184k tokens instead of near the actual 1M limit, losing valuable conversation context unnecessarily.
Expected
"claude-sonnet-4-5": {
contextWindow: 1000000, // 1M as per Anthropic specs
maxTokens: 64000,
}Reference
- Anthropic Model Specs - Sonnet 4.5 has 1M context window
Thanks for the great work on pi!
Metadata
Metadata
Assignees
Labels
No labels