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

@@ -12,7 +12,7 @@ alwaysApply: true
- Pair programming and code generation - Pair programming and code generation
- Worker agents in multi-agent systems - Worker agents in multi-agent systems
**Sonnet 4.5** (Best coding model): **Sonnet 4.6** (Best coding model):
- Main development work - Main development work
- Orchestrating multi-agent workflows - Orchestrating multi-agent workflows
- Complex coding tasks - Complex coding tasks

View File

@@ -13,7 +13,7 @@
"C": "Cyan - username, todos", "C": "Cyan - username, todos",
"T": "Gray - model name" "T": "Gray - model name"
}, },
"output_example": "affoon:~/projects/myapp main* ctx:73% sonnet-4.5 14:30 todos:3", "output_example": "affoon:~/projects/myapp main* ctx:73% sonnet-4.6 14:30 todos:3",
"usage": "Copy the statusLine object to your ~/.claude/settings.json" "usage": "Copy the statusLine object to your ~/.claude/settings.json"
} }
} }

View File

@@ -7,7 +7,7 @@
- Pair programming and code generation - Pair programming and code generation
- Worker agents in multi-agent systems - Worker agents in multi-agent systems
**Sonnet 4.5** (Best coding model): **Sonnet 4.6** (Best coding model):
- Main development work - Main development work
- Orchestrating multi-agent workflows - Orchestrating multi-agent workflows
- Complex coding tasks - Complex coding tasks

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. Automatically select cheaper models for simple tasks, reserving expensive models for complex ones.
```python ```python
MODEL_SONNET = "claude-sonnet-4-5-20250929" MODEL_SONNET = "claude-sonnet-4-6"
MODEL_HAIKU = "claude-haiku-4-5-20251001" MODEL_HAIKU = "claude-haiku-4-5-20251001"
_SONNET_TEXT_THRESHOLD = 10_000 # chars _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 | | Model | Input ($/1M tokens) | Output ($/1M tokens) | Relative Cost |
|-------|---------------------|----------------------|---------------| |-------|---------------------|----------------------|---------------|
| Haiku 4.5 | $0.80 | $4.00 | 1x | | 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 | | Opus 4.5 | $15.00 | $75.00 | ~19x |
## Best Practices ## Best Practices