chore: update Sonnet model references from 4.5 to 4.6

Update MODEL_SONNET constant and all documentation references
to reflect the new claude-sonnet-4-6 model version.
This commit is contained in:
yptse123
2026-02-20 15:37:31 +08:00
parent 0e9f613fd1
commit 81aa8a72c3
4 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ Patterns for controlling LLM API costs while maintaining quality. Combines model
Automatically select cheaper models for simple tasks, reserving expensive models for complex ones.
```python
MODEL_SONNET = "claude-sonnet-4-5-20250929"
MODEL_SONNET = "claude-sonnet-4-6"
MODEL_HAIKU = "claude-haiku-4-5-20251001"
_SONNET_TEXT_THRESHOLD = 10_000 # chars
@@ -155,7 +155,7 @@ def process(text: str, config: Config, tracker: CostTracker) -> tuple[Result, Co
| Model | Input ($/1M tokens) | Output ($/1M tokens) | Relative Cost |
|-------|---------------------|----------------------|---------------|
| Haiku 4.5 | $0.80 | $4.00 | 1x |
| Sonnet 4.5 | $3.00 | $15.00 | ~4x |
| Sonnet 4.6 | $3.00 | $15.00 | ~4x |
| Opus 4.5 | $15.00 | $75.00 | ~19x |
## Best Practices