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

@@ -72,10 +72,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
voice_id="71a7ad14-091c-4e8e-a314-022ece01c121", # British Reading Lady
)
llm = AnthropicLLMService(
api_key=os.getenv("ANTHROPIC_API_KEY"),
model="claude-3-7-sonnet-latest",
)
llm = AnthropicLLMService(api_key=os.getenv("ANTHROPIC_API_KEY"))
llm.register_function("get_weather", get_weather)
llm.register_function("get_restaurant_recommendation", fetch_restaurant_recommendation)