Files
browser-use__browser-use/tests/ci/models/test_llm_anthropic.py
Saurav Panda e29cdeae06 fix(tests): bump retired claude-sonnet-4-0 to claude-sonnet-4-6
Anthropic retired Claude Sonnet 4 (claude-sonnet-4-0 /
claude-sonnet-4-20250514) on 2026-06-15. The live-API model test in
tests/ci/models/test_llm_anthropic.py pinned that alias, so every CI run
now gets a 404 not_found_error and the agent never completes the task,
failing the models/test_llm_anthropic job on all branches.

Bump the test to the current GA Sonnet (claude-sonnet-4-6).
2026-06-26 12:22:17 +08:00

16 lines
472 B
Python

"""Test Anthropic model button click."""
from browser_use.llm.anthropic.chat import ChatAnthropic
from tests.ci.models.model_test_helper import run_model_button_click_test
async def test_anthropic_claude_sonnet_4_6(httpserver):
"""Test Anthropic claude-sonnet-4-6 can click a button."""
await run_model_button_click_test(
model_class=ChatAnthropic,
model_name='claude-sonnet-4-6',
api_key_env='ANTHROPIC_API_KEY',
extra_kwargs={},
httpserver=httpserver,
)