diff --git a/tests/llm_translation/test_anthropic_completion.py b/tests/llm_translation/test_anthropic_completion.py index f42a424dcaa..1513b4ddb2d 100644 --- a/tests/llm_translation/test_anthropic_completion.py +++ b/tests/llm_translation/test_anthropic_completion.py @@ -365,7 +365,7 @@ def test_anthropic_tool_use(tool_type, tool_config, message_content): litellm._turn_on_debug() tools = [tool_config] - model = "claude-3-5-sonnet-20241022" + model = "claude-sonnet-4-5-20250929" messages = [{"role": "user", "content": message_content}] try: @@ -908,7 +908,7 @@ def test_anthropic_citations_api(): try: resp = completion( - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", messages=[ { "role": "user", @@ -953,7 +953,7 @@ def test_anthropic_citations_api_streaming(): from litellm import completion resp = completion( - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", messages=[ { "role": "user", diff --git a/tests/local_testing/test_function_calling.py b/tests/local_testing/test_function_calling.py index e7eb0ee4d66..a8172c16afd 100644 --- a/tests/local_testing/test_function_calling.py +++ b/tests/local_testing/test_function_calling.py @@ -700,7 +700,7 @@ def test_passing_tool_result_as_list(model): resp = completion(model=model, messages=messages, tools=tools) print(resp) - if model == "claude-3-5-sonnet-20241022": + if model == "claude-sonnet-4-5-20250929": assert resp.usage.prompt_tokens_details.cached_tokens > 0 diff --git a/tests/pass_through_tests/base_anthropic_messages_test.py b/tests/pass_through_tests/base_anthropic_messages_test.py index aed267ac8a1..90d00ccb1ad 100644 --- a/tests/pass_through_tests/base_anthropic_messages_test.py +++ b/tests/pass_through_tests/base_anthropic_messages_test.py @@ -17,7 +17,7 @@ class BaseAnthropicMessagesTest(ABC): print("making basic completion request to anthropic passthrough") client = self.get_client() response = client.messages.create( - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", max_tokens=1024, messages=[{"role": "user", "content": "Say 'hello test' and nothing else"}], extra_body={ @@ -37,7 +37,7 @@ class BaseAnthropicMessagesTest(ABC): messages=[ {"role": "user", "content": "Say 'hello stream test' and nothing else"} ], - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", extra_body={ "litellm_metadata": { "tags": ["test-tag-stream-1", "test-tag-stream-2"], @@ -110,7 +110,7 @@ class BaseAnthropicMessagesTest(ABC): try: client = self.get_client() response = client.messages.create( - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", max_tokens=10, stream=True, messages=["hi"], @@ -130,7 +130,7 @@ class BaseAnthropicMessagesTest(ABC): try: client = self.get_client() response = client.messages.create( - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", max_tokens=10, messages=["hi"], ) diff --git a/tests/pass_through_tests/test_anthropic_passthrough.py b/tests/pass_through_tests/test_anthropic_passthrough.py index 6e819f9971c..1a2d1b28ab5 100644 --- a/tests/pass_through_tests/test_anthropic_passthrough.py +++ b/tests/pass_through_tests/test_anthropic_passthrough.py @@ -21,7 +21,7 @@ async def test_anthropic_basic_completion_with_headers(): } payload = { - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "max_tokens": 10, "messages": [{"role": "user", "content": "Say 'hello test' and nothing else"}], "litellm_metadata": { @@ -149,7 +149,7 @@ async def test_anthropic_streaming_with_headers(): } payload = { - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "max_tokens": 10, "messages": [ {"role": "user", "content": "Say 'hello stream test' and nothing else"} diff --git a/tests/pass_through_tests/test_anthropic_passthrough_python_sdkpy b/tests/pass_through_tests/test_anthropic_passthrough_python_sdkpy index beffcbc951c..e611a2d86a6 100644 --- a/tests/pass_through_tests/test_anthropic_passthrough_python_sdkpy +++ b/tests/pass_through_tests/test_anthropic_passthrough_python_sdkpy @@ -13,7 +13,7 @@ client = anthropic.Anthropic( def test_anthropic_basic_completion(): print("making basic completion request to anthropic passthrough") response = client.messages.create( - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", max_tokens=1024, messages=[{"role": "user", "content": "Say 'hello test' and nothing else"}], ) @@ -29,7 +29,7 @@ def test_anthropic_streaming(): messages=[ {"role": "user", "content": "Say 'hello stream test' and nothing else"} ], - model="claude-3-5-sonnet-20241022", + model="claude-sonnet-4-5-20250929", ) as stream: for text in stream.text_stream: collected_output.append(text) diff --git a/tests/pass_through_unit_tests/test_pass_through_unit_tests.py b/tests/pass_through_unit_tests/test_pass_through_unit_tests.py index 445d0ca55e8..0e681cb1e02 100644 --- a/tests/pass_through_unit_tests/test_pass_through_unit_tests.py +++ b/tests/pass_through_unit_tests/test_pass_through_unit_tests.py @@ -234,7 +234,7 @@ def test_init_kwargs_with_tags_in_header(mock_request, mock_user_api_key_dict): athropic_request_body = { - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello, world tell me 2 sentences "}], "litellm_metadata": {"tags": ["hi", "hello"]}, diff --git a/tests/pass_through_unit_tests/test_unit_test_anthropic_pass_through.py b/tests/pass_through_unit_tests/test_unit_test_anthropic_pass_through.py index bcd93de0bba..581f1d19793 100644 --- a/tests/pass_through_unit_tests/test_unit_test_anthropic_pass_through.py +++ b/tests/pass_through_unit_tests/test_unit_test_anthropic_pass_through.py @@ -35,7 +35,7 @@ def mock_httpx_response(): mock_resp.json.return_value = { "content": [{"text": "Hi! My name is Claude.", "type": "text"}], "id": "msg_013Zva2CMHLNnXjNJJKqJ2EF", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "role": "assistant", "stop_reason": "end_turn", "stop_sequence": None, @@ -164,14 +164,14 @@ def test_create_anthropic_response_logging_payload(mock_logging_obj, metadata_pa {"type": "bash_20241022", "name": "bash"}, ], "max_tokens": 4096, - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", **metadata_params, }, "response_body": { "id": "msg_015uSaCZBvu9gUSkAmZtMfxC", "type": "message", "role": "assistant", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "content": [ { "type": "text", @@ -190,7 +190,7 @@ def test_create_anthropic_response_logging_payload(mock_logging_obj, metadata_pa }, }, "response_cost": 0.007941, - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", }, start_time=start_time, end_time=end_time, @@ -219,7 +219,7 @@ def test_get_user_from_metadata(end_user_id): "id": "msg_015uSaCZBvu9gUSkAmZtMfxC", "type": "message", "role": "assistant", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "content": [ { "type": "text", diff --git a/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py b/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py index deb442e8075..b556b0e5bee 100644 --- a/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py +++ b/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py @@ -138,7 +138,7 @@ def test_extract_response_content_with_citations(): "id": "msg_01XrAv7gc5tQNDuoADra7vB4", "type": "message", "role": "assistant", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "content": [ {"type": "text", "text": "According to the documents, "}, { @@ -326,7 +326,7 @@ def test_transform_response_with_prefix_prompt(): "id": "msg_01XrAv7gc5tQNDuoADra7vB4", "type": "message", "role": "assistant", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "content": [{"type": "text", "text": " The grass is green."}], "stop_reason": "end_turn", "stop_sequence": None, diff --git a/tests/test_litellm/passthrough/test_passthrough_main.py b/tests/test_litellm/passthrough/test_passthrough_main.py index 2f577b17a05..faa59969658 100644 --- a/tests/test_litellm/passthrough/test_passthrough_main.py +++ b/tests/test_litellm/passthrough/test_passthrough_main.py @@ -258,7 +258,7 @@ async def test_pass_through_request_stream_param_override( # Create request body with stream=True request_body = { - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello, world"}], "stream": True, # This should override the function parameter @@ -355,7 +355,7 @@ async def test_pass_through_request_stream_param_no_override( # Create request body without stream parameter request_body = { - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello, world"}], # No stream parameter - should use function parameter stream=False diff --git a/tests/test_litellm/responses/litellm_completion_transformation/test_session_handler.py b/tests/test_litellm/responses/litellm_completion_transformation/test_session_handler.py index e67d6373dd4..bd6bab9d61e 100644 --- a/tests/test_litellm/responses/litellm_completion_transformation/test_session_handler.py +++ b/tests/test_litellm/responses/litellm_completion_transformation/test_session_handler.py @@ -42,7 +42,7 @@ async def test_get_chat_completion_message_history_for_previous_response_id(): }, "response": { "id": "chatcmpl-935b8dad-fdc2-466e-a8ca-e26e5a8a21bb", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "object": "chat.completion", "choices": [ { @@ -84,7 +84,7 @@ async def test_get_chat_completion_message_history_for_previous_response_id(): }, "response": { "id": "chatcmpl-370760c9-39fa-4db7-b034-d1f8d933c935", - "model": "claude-3-5-sonnet-20241022", + "model": "claude-sonnet-4-5-20250929", "object": "chat.completion", "choices": [ { diff --git a/ui/litellm-dashboard/out/404.html b/ui/litellm-dashboard/out/404.html index 8e21c88b9a3..abde756ab87 100644 --- a/ui/litellm-dashboard/out/404.html +++ b/ui/litellm-dashboard/out/404.html @@ -1 +1 @@ -