From 2e6965381e683bcc2d8f6bb4497b6b9da888e74d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 3 May 2026 07:48:56 +0000 Subject: [PATCH] test(responses): replace legacy claude-4-sonnet alias in multiturn tool-call test Anthropic's main API no longer resolves the non-canonical 'claude-4-sonnet-20250514' alias for freshly issued keys, returning 404 not_found_error. PR #27031 already swept three other live tests pinned to this alias to claude-haiku-4-5-20251001 but missed test_multiturn_tool_calls in the responses API suite, which is now failing reliably on PR CI runs (e.g. PR #27074, job 1603363). Bump the two model references in test_multiturn_tool_calls to the same claude-haiku-4-5-20251001 snapshot used by PR #27031 -- it covers everything this test exercises (tool calling, multi-turn) and isn't on a deprecation schedule. Co-authored-by: Mateo Wang --- .../llm_responses_api_testing/test_anthropic_responses_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/llm_responses_api_testing/test_anthropic_responses_api.py b/tests/llm_responses_api_testing/test_anthropic_responses_api.py index 575e1af21a3..6537f67acb9 100644 --- a/tests/llm_responses_api_testing/test_anthropic_responses_api.py +++ b/tests/llm_responses_api_testing/test_anthropic_responses_api.py @@ -89,7 +89,7 @@ def test_multiturn_tool_calls(): "type": "message", } ], - model="anthropic/claude-4-sonnet-20250514", + model="anthropic/claude-haiku-4-5-20251001", instructions="You are a helpful coding assistant.", tools=[shell_tool], ) @@ -115,7 +115,7 @@ def test_multiturn_tool_calls(): # Use await with asyncio.run for the async function follow_up_response = litellm.responses( - model="anthropic/claude-4-sonnet-20250514", + model="anthropic/claude-haiku-4-5-20251001", previous_response_id=response_id, input=[ {