fix(providers): update Anthropic default model to claude-sonnet-4-6

Update the Anthropic provider default model and matching docs/tests from claude-sonnet-4-20250514 to claude-sonnet-4-6.

Fixes #4675
This commit is contained in:
LILAC
2026-07-03 15:46:19 +08:00
committed by GitHub
parent c9c69e4316
commit b19a744110
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class AnthropicProvider(LLMProvider):
self,
api_key: str | None = None,
api_base: str | None = None,
default_model: str = "claude-sonnet-4-20250514",
default_model: str = "claude-sonnet-4-6",
extra_headers: dict[str, str] | None = None,
):
super().__init__(api_key, api_base)
+2 -2
View File
@@ -23,7 +23,7 @@ Concrete scenarios showing when and how to use the my tool effectively.
### "What model are you running?"
```
→ my(action="check", key="model")
→ 'anthropic/claude-sonnet-4-20250514'
→ 'anthropic/claude-sonnet-4-6'
→ my(action="check", key="model_preset")
→ 'deep'
```
@@ -49,7 +49,7 @@ Concrete scenarios showing when and how to use the my tool effectively.
### Switching to a raw model when no preset exists
```
→ my(action="set", key="model", value="anthropic/claude-haiku-4-5-20251001")
→ "Set model = 'anthropic/claude-haiku-4-5-20251001' (was 'anthropic/claude-sonnet-4-20250514')"
→ "Set model = 'anthropic/claude-haiku-4-5-20251001' (was 'anthropic/claude-sonnet-4-6')"
→ "Switched to a faster model for these batch tasks."
```