Update default Anthropic model to claude-sonnet-4-6

Update the default model in AnthropicLLMService and remove the
now-unnecessary explicit model from the function calling example.
This commit is contained in:
Aleix Conchillo Flaqué
2026-02-20 16:17:51 -08:00
parent b1e72ad4b7
commit abb20f34ba
2 changed files with 3 additions and 6 deletions

View File

@@ -184,7 +184,7 @@ class AnthropicLLMService(LLMService):
self,
*,
api_key: str,
model: str = "claude-sonnet-4-5-20250929",
model: str = "claude-sonnet-4-6",
params: Optional[InputParams] = None,
client=None,
retry_timeout_secs: Optional[float] = 5.0,
@@ -195,7 +195,7 @@ class AnthropicLLMService(LLMService):
Args:
api_key: Anthropic API key for authentication.
model: Model name to use. Defaults to "claude-sonnet-4-5-20250929".
model: Model name to use. Defaults to "claude-sonnet-4-6".
params: Optional model parameters for inference.
client: Optional custom Anthropic client instance.
retry_timeout_secs: Request timeout in seconds for retry logic.