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
@@ -18,7 +18,7 @@ from nanobot.agent.tools.self import MyTool
def _make_mock_loop(**overrides):
"""Build a lightweight mock AgentLoop with the attributes MyTool reads."""
loop = MagicMock()
loop.model = "anthropic/claude-sonnet-4-20250514"
loop.model = "anthropic/claude-sonnet-4-6"
loop.max_iterations = 40
loop.context_window_tokens = 65_536
loop.workspace = Path("/tmp/workspace")