Skip to content

claude-sonnet-4-5 contextWindow should be 1M, not 200k #1076

@darconada

Description

@darconada

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

Thanks for the great work on pi!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions