mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
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 <mateo-berri@users.noreply.github.com>
This commit is contained in:
parent
c94a8d6514
commit
2e6965381e
1 changed files with 2 additions and 2 deletions
|
|
@ -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=[
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue