Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test fix

Ishaan Jafferc27beb74b96a
diff --git a/tests/enterprise/litellm_enterprise/integrations/test_prometheus_unit_tests.py b/tests/enterprise/litellm_enterprise/integrations/test_prometheus_unit_tests.py
index b06bb5f4752..b0bd88b4e3c 100644
--- a/tests/enterprise/litellm_enterprise/integrations/test_prometheus_unit_tests.py
+++ b/tests/enterprise/litellm_enterprise/integrations/test_prometheus_unit_tests.py
@@ -166,7 +166,7 @@ async def test_prometheus_metric_tracking():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/llm_translation/test_azure_openai.py b/tests/llm_translation/test_azure_openai.py
index 131e23b1c5b..b9f20ffd257 100644
--- a/tests/llm_translation/test_azure_openai.py
+++ b/tests/llm_translation/test_azure_openai.py
@@ -137,7 +137,7 @@ def test_azure_extra_headers(input, call_type, header_value):
func = image_generation
data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_base": "https://openai-gpt-4-test-v-1.openai.azure.com",
"api_version": "2023-07-01-preview",
"api_key": "my-azure-api-key",
diff --git a/tests/local_testing/example_config_yaml/azure_config.yaml b/tests/local_testing/example_config_yaml/azure_config.yaml
index 111813c8840..a0300bd6d17 100644
--- a/tests/local_testing/example_config_yaml/azure_config.yaml
+++ b/tests/local_testing/example_config_yaml/azure_config.yaml
@@ -1,7 +1,7 @@
model_list:
- model_name: gpt-4-team1
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: https://openai-gpt-4-test-v-1.openai.azure.com/
api_version: "2023-05-15"
api_key: os.environ/AZURE_API_KEY
diff --git a/tests/local_testing/test_acooldowns_router.py b/tests/local_testing/test_acooldowns_router.py
index 0c385133e32..79345b60b17 100644
--- a/tests/local_testing/test_acooldowns_router.py
+++ b/tests/local_testing/test_acooldowns_router.py
@@ -26,7 +26,7 @@ model_list = [
{ # list of model deployments
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -180,7 +180,7 @@ async def test_cooldown_same_model_name(sync_mode):
model_ids.append(model["model_info"]["id"])
print("\n litellm model ids ", model_ids)
- # example litellm_model_names ['azure/chatgpt-v-3-ModelID-64321', 'azure/chatgpt-v-3-ModelID-63960']
+ # example litellm_model_names ['azure/gpt-4.1-nano-ModelID-64321', 'azure/gpt-4.1-nano-ModelID-63960']
assert (
model_ids[0] != model_ids[1]
) # ensure both models have a uuid added, and they have different names
@@ -197,7 +197,7 @@ async def test_cooldown_same_model_name(sync_mode):
model_ids.append(model["model_info"]["id"])
print("\n litellm model ids ", model_ids)
- # example litellm_model_names ['azure/chatgpt-v-3-ModelID-64321', 'azure/chatgpt-v-3-ModelID-63960']
+ # example litellm_model_names ['azure/gpt-4.1-nano-ModelID-64321', 'azure/gpt-4.1-nano-ModelID-63960']
assert (
model_ids[0] != model_ids[1]
) # ensure both models have a uuid added, and they have different names
diff --git a/tests/local_testing/test_alangfuse.py b/tests/local_testing/test_alangfuse.py
index 75dc07f9d5c..c196e4a3b32 100644
--- a/tests/local_testing/test_alangfuse.py
+++ b/tests/local_testing/test_alangfuse.py
@@ -194,7 +194,7 @@ def create_async_task(**completion_kwargs):
By default a standard set of arguments are used for the litellm.acompletion function.
"""
completion_args = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_version": "2024-02-01",
"messages": [{"role": "user", "content": "This is a test"}],
"max_tokens": 5,
diff --git a/tests/local_testing/test_azure_openai.py b/tests/local_testing/test_azure_openai.py
index ceafc37488e..24f8500c441 100644
--- a/tests/local_testing/test_azure_openai.py
+++ b/tests/local_testing/test_azure_openai.py
@@ -47,7 +47,7 @@ async def test_aaaaazure_tenant_id_auth(respx_mock: MockRouter):
{
"model_name": "gpt-3.5-turbo",
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_base": os.getenv("AZURE_API_BASE"),
"tenant_id": os.getenv("AZURE_TENANT_ID"),
"client_id": os.getenv("AZURE_CLIENT_ID"),
diff --git a/tests/local_testing/test_azure_perf.py b/tests/local_testing/test_azure_perf.py
index bc6d694b789..0ec37189830 100644
--- a/tests/local_testing/test_azure_perf.py
+++ b/tests/local_testing/test_azure_perf.py
@@ -18,7 +18,7 @@
# {
# "model_name": "azure-test",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_base": os.getenv("AZURE_API_BASE"),
# "api_version": os.getenv("AZURE_API_VERSION"),
diff --git a/tests/local_testing/test_caching_ssl.py b/tests/local_testing/test_caching_ssl.py
index 7357f89c429..574b8ccaeab 100644
--- a/tests/local_testing/test_caching_ssl.py
+++ b/tests/local_testing/test_caching_ssl.py
@@ -58,7 +58,7 @@ def test_caching_router():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_class.py b/tests/local_testing/test_class.py
index e6b711efe80..b83a9157703 100644
--- a/tests/local_testing/test_class.py
+++ b/tests/local_testing/test_class.py
@@ -55,7 +55,7 @@
# # {
# # "model_name": "gpt-3.5-turbo", # openai model name
# # "litellm_params": { # params for litellm completion/embedding call
-# # "model": "azure/chatgpt-v-3",
+# # "model": "azure/gpt-4.1-nano",
# # "api_key": os.getenv("AZURE_API_KEY"),
# # "api_version": os.getenv("AZURE_API_VERSION"),
# # "api_base": os.getenv("AZURE_API_BASE"),
@@ -93,7 +93,7 @@
# # {
# # "model_name": "gpt-3.5-turbo", # openai model name
# # "litellm_params": { # params for litellm completion/embedding call
-# # "model": "azure/chatgpt-v-3",
+# # "model": "azure/gpt-4.1-nano",
# # "api_key": os.getenv("AZURE_API_KEY"),
# # "api_version": os.getenv("AZURE_API_VERSION"),
# # "api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.py
index d664add136b..17dc8929c61 100644
--- a/tests/local_testing/test_completion.py
+++ b/tests/local_testing/test_completion.py
@@ -1746,7 +1746,7 @@ def test_completion_openai():
"model, api_version",
[
# ("gpt-4o-2024-08-06", None),
- # ("azure/chatgpt-v-3", None),
+ # ("azure/gpt-4.1-nano", None),
("bedrock/anthropic.claude-3-sonnet-20240229-v1:0", None),
# ("azure/gpt-4o-new-test", "2024-08-01-preview"),
],
@@ -2417,7 +2417,7 @@ def test_completion_azure_extra_headers():
litellm.client_session = http_client
try:
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=messages,
api_base=os.getenv("AZURE_API_BASE"),
api_version="2023-07-01-preview",
@@ -2466,7 +2466,7 @@ def test_completion_azure_ad_token():
litellm.client_session = http_client
try:
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=messages,
azure_ad_token="my-special-token",
)
@@ -2497,7 +2497,7 @@ def test_completion_azure_key_completion_arg():
litellm.set_verbose = True
## Test azure call
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=messages,
api_key=old_key,
logprobs=True,
@@ -2555,7 +2555,7 @@ async def test_re_use_azure_async_client():
## Test azure call
for _ in range(3):
response = await litellm.acompletion(
- model="azure/chatgpt-v-3", messages=messages, client=client
+ model="azure/gpt-4.1-nano", messages=messages, client=client
)
print(f"response: {response}")
except Exception as e:
@@ -2633,7 +2633,7 @@ def test_azure_openai_ad_token():
litellm.input_callback = [tester]
try:
response = litellm.completion(
- model="azure/chatgpt-v-3", # e.g. gpt-35-instant
+ model="azure/gpt-4.1-nano", # e.g. gpt-35-instant
messages=[
{
"role": "user",
@@ -2671,7 +2671,7 @@ def test_completion_azure2():
## Test azure call
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=messages,
api_base=api_base,
api_key=api_key,
@@ -2708,7 +2708,7 @@ def test_completion_azure3():
## Test azure call
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=messages,
max_tokens=10,
)
@@ -2756,7 +2756,7 @@ def test_completion_azure_with_litellm_key():
openai.api_key = "ymca"
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=messages,
)
# Add any assertions here to check the response
@@ -4098,7 +4098,7 @@ async def test_completion_ai21_chat():
@pytest.mark.parametrize(
"model",
- ["gpt-4o", "azure/chatgpt-v-3"],
+ ["gpt-4o", "azure/gpt-4.1-nano"],
)
@pytest.mark.parametrize(
"stream",
@@ -4120,7 +4120,7 @@ def test_completion_response_ratelimit_headers(model, stream):
assert "x-ratelimit-remaining-requests" in additional_headers
assert "x-ratelimit-remaining-tokens" in additional_headers
- if model == "azure/chatgpt-v-3":
+ if model == "azure/gpt-4.1-nano":
# Azure OpenAI header
assert "llm_provider-azureml-model-session" in additional_headers
if model == "claude-3-sonnet-20240229":
diff --git a/tests/local_testing/test_config.py b/tests/local_testing/test_config.py
index b56be328817..a0a31c2e78c 100644
--- a/tests/local_testing/test_config.py
+++ b/tests/local_testing/test_config.py
@@ -46,7 +46,7 @@ async def test_delete_deployment():
import base64
litellm_params = LiteLLM_Params(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
api_key=os.getenv("AZURE_API_KEY"),
api_base=os.getenv("AZURE_API_BASE"),
api_version=os.getenv("AZURE_API_VERSION"),
@@ -232,7 +232,7 @@ async def test_db_error_new_model_check():
litellm_params = LiteLLM_Params(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
api_key=os.getenv("AZURE_API_KEY"),
api_base=os.getenv("AZURE_API_BASE"),
api_version=os.getenv("AZURE_API_VERSION"),
@@ -250,7 +250,7 @@ def _create_model_list(flag_value: Literal[0, 1], master_key: str):
import base64
new_litellm_params = LiteLLM_Params(
- model="azure/chatgpt-v-3-3",
+ model="azure/gpt-4.1-nano-3",
api_key=os.getenv("AZURE_API_KEY"),
api_base=os.getenv("AZURE_API_BASE"),
api_version=os.getenv("AZURE_API_VERSION"),
diff --git a/tests/local_testing/test_configs/test_bad_config.yaml b/tests/local_testing/test_configs/test_bad_config.yaml
index 0a16ecb3c5b..08f6c249711 100644
--- a/tests/local_testing/test_configs/test_bad_config.yaml
+++ b/tests/local_testing/test_configs/test_bad_config.yaml
@@ -5,12 +5,12 @@ model_list:
model: gpt-3.5-turbo
- model_name: working-azure-gpt-3.5-turbo
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: os.environ/AZURE_API_BASE
api_key: os.environ/AZURE_API_KEY
- model_name: azure-gpt-3.5-turbo
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: os.environ/AZURE_API_BASE
api_key: bad-key
- model_name: azure-embedding
diff --git a/tests/local_testing/test_configs/test_cloudflare_azure_with_cache_config.yaml b/tests/local_testing/test_configs/test_cloudflare_azure_with_cache_config.yaml
index aeadbeb8728..acb07858501 100644
--- a/tests/local_testing/test_configs/test_cloudflare_azure_with_cache_config.yaml
+++ b/tests/local_testing/test_configs/test_cloudflare_azure_with_cache_config.yaml
@@ -1,7 +1,7 @@
model_list:
- model_name: azure-cloudflare
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: https://gateway.ai.cloudflare.com/v1/0399b10e77ac6668c80404a5ff49eb37/litellm-test/azure-openai/openai-gpt-4-test-v-1
api_key: os.environ/AZURE_API_KEY
api_version: 2023-07-01-preview
diff --git a/tests/local_testing/test_configs/test_config_no_auth.yaml b/tests/local_testing/test_configs/test_config_no_auth.yaml
index 075bf7a09d5..a1d14a53655 100644
--- a/tests/local_testing/test_configs/test_config_no_auth.yaml
+++ b/tests/local_testing/test_configs/test_config_no_auth.yaml
@@ -12,7 +12,7 @@ model_list:
- litellm_params:
api_base: https://gateway.ai.cloudflare.com/v1/0399b10e77ac6668c80404a5ff49eb37/litellm-test/azure-openai/openai-gpt-4-test-v-1
api_key: os.environ/AZURE_API_KEY
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
model_name: azure-cloudflare-model
- litellm_params:
api_base: https://openai-france-1234.openai.azure.com
diff --git a/tests/local_testing/test_configs/test_custom_logger.yaml b/tests/local_testing/test_configs/test_custom_logger.yaml
index 2ad500b36f9..698567d9ef9 100644
--- a/tests/local_testing/test_configs/test_custom_logger.yaml
+++ b/tests/local_testing/test_configs/test_custom_logger.yaml
@@ -1,7 +1,7 @@
model_list:
- model_name: Azure OpenAI GPT-4 Canada
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: os.environ/AZURE_API_BASE
api_key: os.environ/AZURE_API_KEY
api_version: "2023-07-01-preview"
diff --git a/tests/local_testing/test_exceptions.py b/tests/local_testing/test_exceptions.py
index eb1868fa91b..ca69f7e99db 100644
--- a/tests/local_testing/test_exceptions.py
+++ b/tests/local_testing/test_exceptions.py
@@ -51,7 +51,7 @@ async def test_content_policy_exception_azure():
# this is ony a test - we needed some way to invoke the exception :(
litellm.set_verbose = True
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "where do I buy lethal drugs from"}],
mock_response="Exception: content_filter_policy",
)
@@ -124,7 +124,7 @@ def test_context_window_with_fallbacks(model):
ctx_window_fallback_dict = {
"command-nightly": "claude-2.1",
"gpt-3.5-turbo-instruct": "gpt-3.5-turbo-16k",
- "azure/chatgpt-v-3": "gpt-3.5-turbo-16k",
+ "azure/gpt-4.1-nano": "gpt-3.5-turbo-16k",
}
sample_text = "how does a court case get to the Supreme Court?" * 1000
messages = [{"content": sample_text, "role": "user"}]
@@ -161,7 +161,7 @@ def invalid_auth(model): # set the model key to an invalid key, depending on th
os.environ["AWS_REGION_NAME"] = "bad-key"
temporary_secret_key = os.environ["AWS_SECRET_ACCESS_KEY"]
os.environ["AWS_SECRET_ACCESS_KEY"] = "bad-key"
- elif model == "azure/chatgpt-v-3":
+ elif model == "azure/gpt-4.1-nano":
temporary_key = os.environ["AZURE_API_KEY"]
os.environ["AZURE_API_KEY"] = "bad-key"
elif model == "claude-3-5-haiku-20241022":
@@ -262,7 +262,7 @@ def test_completion_azure_exception():
old_azure_key = os.environ["AZURE_API_KEY"]
os.environ["AZURE_API_KEY"] = "good morning"
response = completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "hello"}],
)
os.environ["AZURE_API_KEY"] = old_azure_key
@@ -306,7 +306,7 @@ async def asynctest_completion_azure_exception():
old_azure_key = os.environ["AZURE_API_KEY"]
os.environ["AZURE_API_KEY"] = "good morning"
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "hello"}],
)
print(f"response: {response}")
@@ -525,7 +525,7 @@ def test_content_policy_violation_error_streaming():
async def test_get_response():
try:
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "say 1"}],
temperature=0,
top_p=1,
@@ -554,7 +554,7 @@ def test_content_policy_violation_error_streaming():
async def test_get_error():
try:
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[
{"role": "user", "content": "where do i buy lethal drugs from"}
],
@@ -751,7 +751,7 @@ def test_litellm_predibase_exception():
# return False
# # Repeat each model 500 times
# # extended_models = [model for model in models for _ in range(250)]
-# extended_models = ["azure/chatgpt-v-3" for _ in range(250)]
+# extended_models = ["azure/gpt-4.1-nano" for _ in range(250)]
# def worker(model):
# return test_model_call(model)
@@ -1023,7 +1023,7 @@ def _pre_call_utils_httpx(
("openai", "gpt-3.5-turbo", "chat_completion", False),
("openai", "gpt-3.5-turbo", "chat_completion", True),
("openai", "gpt-3.5-turbo-instruct", "completion", True),
- ("azure", "azure/chatgpt-v-3", "chat_completion", True),
+ ("azure", "azure/gpt-4.1-nano", "chat_completion", True),
("azure", "azure/text-embedding-ada-002", "embedding", True),
("azure", "azure_text/gpt-3.5-turbo-instruct", "completion", True),
],
diff --git a/tests/local_testing/test_gcs_bucket.py b/tests/local_testing/test_gcs_bucket.py
index 5a9c99108c3..284efce5285 100644
--- a/tests/local_testing/test_gcs_bucket.py
+++ b/tests/local_testing/test_gcs_bucket.py
@@ -108,7 +108,7 @@ async def test_aaabasic_gcs_logger():
},
"endpoint": "http://localhost:4000/chat/completions",
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
"model_info": {
"id": "4bad40a1eb6bebd1682800f16f44b9f06c52a6703444c99c7f9f32e9de3693b4",
"db_model": False,
@@ -216,7 +216,7 @@ async def test_basic_gcs_logger_failure():
},
"endpoint": "http://localhost:4000/chat/completions",
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
"model_info": {
"id": "4bad40a1eb6bebd1682800f16f44b9f06c52a6703444c99c7f9f32e9de3693b4",
"db_model": False,
@@ -626,7 +626,7 @@ async def test_basic_gcs_logger_with_folder_in_bucket_name():
},
"endpoint": "http://localhost:4000/chat/completions",
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
"model_info": {
"id": "4bad40a1eb6bebd1682800f16f44b9f06c52a6703444c99c7f9f32e9de3693b4",
"db_model": False,
diff --git a/tests/local_testing/test_helicone_integration.py b/tests/local_testing/test_helicone_integration.py
index 4d77058598f..a128dd84c86 100644
--- a/tests/local_testing/test_helicone_integration.py
+++ b/tests/local_testing/test_helicone_integration.py
@@ -78,7 +78,7 @@ async def make_async_calls(metadata=None, **completion_kwargs):
def create_async_task(**completion_kwargs):
completion_args = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_version": "2024-02-01",
"messages": [{"role": "user", "content": "This is a test"}],
"max_tokens": 5,
diff --git a/tests/local_testing/test_least_busy_routing.py b/tests/local_testing/test_least_busy_routing.py
index 7e4393da0b4..5a2fa19562e 100644
--- a/tests/local_testing/test_least_busy_routing.py
+++ b/tests/local_testing/test_least_busy_routing.py
@@ -33,7 +33,7 @@ def test_model_added():
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": "1234"},
}
@@ -47,7 +47,7 @@ def test_get_available_deployments():
test_cache = DualCache()
least_busy_logger = LeastBusyLoggingHandler(router_cache=test_cache, model_list=[])
model_group = "gpt-3.5-turbo"
- deployment = "azure/chatgpt-v-3"
+ deployment = "azure/gpt-4.1-nano"
kwargs = {
"litellm_params": {
"metadata": {
@@ -113,7 +113,7 @@ async def test_router_get_available_deployments(async_test):
router.leastbusy_logger.test_flag = True
model_group = "azure-model"
- deployment = "azure/chatgpt-v-3"
+ deployment = "azure/gpt-4.1-nano"
request_count_dict = {1: 10, 2: 54, 3: 100}
cache_key = f"{model_group}_request_count"
if async_test is True:
diff --git a/tests/local_testing/test_load_test_router_s3.py b/tests/local_testing/test_load_test_router_s3.py
index 3a2567b6866..6b0b6050610 100644
--- a/tests/local_testing/test_load_test_router_s3.py
+++ b/tests/local_testing/test_load_test_router_s3.py
@@ -46,7 +46,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_base": os.getenv("AZURE_API_BASE"),
# "api_version": os.getenv("AZURE_API_VERSION"),
diff --git a/tests/local_testing/test_loadtest_router.py b/tests/local_testing/test_loadtest_router.py
index 0d8a09ca622..14f6cf627aa 100644
--- a/tests/local_testing/test_loadtest_router.py
+++ b/tests/local_testing/test_loadtest_router.py
@@ -38,7 +38,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_base": os.getenv("AZURE_API_BASE"),
# "api_version": os.getenv("AZURE_API_VERSION"),
diff --git a/tests/local_testing/test_lowest_cost_routing.py b/tests/local_testing/test_lowest_cost_routing.py
index c0305f33fce..bad8bbbb0a4 100644
--- a/tests/local_testing/test_lowest_cost_routing.py
+++ b/tests/local_testing/test_lowest_cost_routing.py
@@ -60,7 +60,7 @@ async def test_get_available_deployments_custom_price():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"input_cost_per_token": 0.00003,
"output_cost_per_token": 0.00003,
},
diff --git a/tests/local_testing/test_lowest_latency_routing.py b/tests/local_testing/test_lowest_latency_routing.py
index 74dae25c1fb..2a7b0eadc42 100644
--- a/tests/local_testing/test_lowest_latency_routing.py
+++ b/tests/local_testing/test_lowest_latency_routing.py
@@ -48,7 +48,7 @@ async def test_latency_memory_leak(sync_mode):
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -130,7 +130,7 @@ def test_latency_updated():
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -173,7 +173,7 @@ def test_latency_updated_custom_ttl():
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -200,12 +200,12 @@ def test_get_available_deployments():
model_list = [
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "1234"},
},
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "5678"},
},
]
@@ -219,7 +219,7 @@ def test_get_available_deployments():
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -240,7 +240,7 @@ def test_get_available_deployments():
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -275,7 +275,7 @@ async def _deploy(lowest_latency_logger, deployment_id, tokens_used, duration):
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -317,12 +317,12 @@ def test_get_available_endpoints_tpm_rpm_check_async(ans_rpm):
model_list = [
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "1234", "rpm": ans_rpm},
},
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "5678", "rpm": non_ans_rpm},
},
]
@@ -366,12 +366,12 @@ def test_get_available_endpoints_tpm_rpm_check(ans_rpm):
model_list = [
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "1234", "rpm": ans_rpm},
},
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "5678", "rpm": non_ans_rpm},
},
]
@@ -385,7 +385,7 @@ def test_get_available_endpoints_tpm_rpm_check(ans_rpm):
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
@@ -407,7 +407,7 @@ def test_get_available_endpoints_tpm_rpm_check(ans_rpm):
"litellm_params": {
"metadata": {
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
},
"model_info": {"id": deployment_id},
}
diff --git a/tests/local_testing/test_mem_usage.py b/tests/local_testing/test_mem_usage.py
index f91852899ad..7c5e74331f1 100644
--- a/tests/local_testing/test_mem_usage.py
+++ b/tests/local_testing/test_mem_usage.py
@@ -29,7 +29,7 @@
# {
# "model_name": "gpt-3.5-turbo", # openai model name
# "litellm_params": { # params for litellm completion/embedding call
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
@@ -40,7 +40,7 @@
# {
# "model_name": "bad-model", # openai model name
# "litellm_params": { # params for litellm completion/embedding call
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": "bad-key",
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_prompt_injection_detection.py b/tests/local_testing/test_prompt_injection_detection.py
index 8443aadcc69..b438ebad7f8 100644
--- a/tests/local_testing/test_prompt_injection_detection.py
+++ b/tests/local_testing/test_prompt_injection_detection.py
@@ -107,7 +107,7 @@ async def test_prompt_injection_llm_eval():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_provider_specific_config.py b/tests/local_testing/test_provider_specific_config.py
index 8fc4c6ec21c..f4df8995a92 100644
--- a/tests/local_testing/test_provider_specific_config.py
+++ b/tests/local_testing/test_provider_specific_config.py
@@ -729,7 +729,7 @@ def azure_openai_test_completion():
try:
# OVERRIDE WITH DYNAMIC MAX TOKENS
response_1 = litellm.completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[
{
"content": "Hello, how are you? Be as verbose as possible",
@@ -743,7 +743,7 @@ def azure_openai_test_completion():
# USE CONFIG TOKENS
response_2 = litellm.completion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[
{
"content": "Hello, how are you? Be as verbose as possible",
diff --git a/tests/local_testing/test_router.py b/tests/local_testing/test_router.py
index 4f9cf7aa95f..a433ea500a8 100644
--- a/tests/local_testing/test_router.py
+++ b/tests/local_testing/test_router.py
@@ -266,7 +266,7 @@ def test_router_sensitive_keys():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "special-key",
},
"model_info": {"id": 12345},
@@ -415,7 +415,7 @@ def test_exception_raising():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -527,7 +527,7 @@ def test_reading_key_from_model_list():
def test_call_one_endpoint():
# [PROD TEST CASE]
# user passes one deployment they want to call on the router, we call the specified one
- # this test makes a completion calls azure/chatgpt-v-3, it should work
+ # this test makes a completion calls azure/gpt-4.1-nano, it should work
try:
print("Testing calling a specific deployment")
old_api_key = os.environ["AZURE_API_KEY"]
@@ -785,7 +785,7 @@ def test_router_context_window_check_pre_call_check_in_group_custom_model_info()
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -839,7 +839,7 @@ def test_router_context_window_check_pre_call_check():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -893,7 +893,7 @@ def test_router_context_window_check_pre_call_check_out_group():
{
"model_name": "gpt-3.5-turbo-small", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -972,7 +972,7 @@ def test_router_region_pre_call_check(allowed_model_region):
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -2572,7 +2572,7 @@ def test_is_team_specific_model():
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_base": os.getenv("AZURE_API_BASE"),
# "tpm": 100000,
@@ -2582,7 +2582,7 @@ def test_is_team_specific_model():
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_base": os.getenv("AZURE_API_BASE"),
# "tpm": 500,
diff --git a/tests/local_testing/test_router_client_init.py b/tests/local_testing/test_router_client_init.py
index 42fc49a4c70..a0a274911dc 100644
--- a/tests/local_testing/test_router_client_init.py
+++ b/tests/local_testing/test_router_client_init.py
@@ -43,7 +43,7 @@ async def test_router_init():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
diff --git a/tests/local_testing/test_router_debug_logs.py b/tests/local_testing/test_router_debug_logs.py
index bce09404d86..9b12aa13f01 100644
--- a/tests/local_testing/test_router_debug_logs.py
+++ b/tests/local_testing/test_router_debug_logs.py
@@ -33,7 +33,7 @@ def test_async_fallbacks(caplog):
{
"model_name": "azure/gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -93,7 +93,7 @@ def test_async_fallbacks(caplog):
# - error request, falling back notice, success notice
expected_logs = [
"Falling back to model_group = azure/gpt-3.5-turbo",
- "litellm.acompletion(model=azure/chatgpt-v-3)\x1b[32m 200 OK\x1b[0m",
+ "litellm.acompletion(model=azure/gpt-4.1-nano)\x1b[32m 200 OK\x1b[0m",
"Successful fallback b/w models.",
]
diff --git a/tests/local_testing/test_router_fallbacks.py b/tests/local_testing/test_router_fallbacks.py
index 5b4e6ab5807..d539441fa2d 100644
--- a/tests/local_testing/test_router_fallbacks.py
+++ b/tests/local_testing/test_router_fallbacks.py
@@ -67,7 +67,7 @@ def test_sync_fallbacks():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -78,7 +78,7 @@ def test_sync_fallbacks():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -150,7 +150,7 @@ async def test_async_fallbacks():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -161,7 +161,7 @@ async def test_async_fallbacks():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -345,7 +345,7 @@ def test_dynamic_fallbacks_sync():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -356,7 +356,7 @@ def test_dynamic_fallbacks_sync():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -422,7 +422,7 @@ async def test_dynamic_fallbacks_async():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -433,7 +433,7 @@ async def test_dynamic_fallbacks_async():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -505,7 +505,7 @@ async def test_async_fallbacks_streaming():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -516,7 +516,7 @@ async def test_async_fallbacks_streaming():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -590,7 +590,7 @@ def test_sync_fallbacks_streaming():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -601,7 +601,7 @@ def test_sync_fallbacks_streaming():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -671,7 +671,7 @@ async def test_async_fallbacks_max_retries_per_request():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -682,7 +682,7 @@ async def test_async_fallbacks_max_retries_per_request():
{ # list of model deployments
"model_name": "azure/gpt-3.5-turbo-context-fallback", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -885,7 +885,7 @@ def test_custom_cooldown_times():
{ # list of model deployments
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -895,7 +895,7 @@ def test_custom_cooldown_times():
{ # list of model deployments
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_router_get_deployments.py b/tests/local_testing/test_router_get_deployments.py
index 8d064be9a81..7fda8a2be24 100644
--- a/tests/local_testing/test_router_get_deployments.py
+++ b/tests/local_testing/test_router_get_deployments.py
@@ -41,7 +41,7 @@ def test_weighted_selection_router():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -54,7 +54,7 @@ def test_weighted_selection_router():
)
selection_counts = defaultdict(int)
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
for _ in range(1000):
selected_model = router.get_available_deployment("gpt-3.5-turbo")
selected_model_id = selected_model["litellm_params"]["model"]
@@ -64,10 +64,10 @@ def test_weighted_selection_router():
total_requests = sum(selection_counts.values())
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
- selection_counts["azure/chatgpt-v-3"] / total_requests > 0.89
- ), f"Assertion failed: 'azure/chatgpt-v-3' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
+ selection_counts["azure/gpt-4.1-nano"] / total_requests > 0.89
+ ), f"Assertion failed: 'azure/gpt-4.1-nano' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
router.reset()
except Exception as e:
@@ -97,7 +97,7 @@ def test_weighted_selection_router_tpm():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -110,7 +110,7 @@ def test_weighted_selection_router_tpm():
)
selection_counts = defaultdict(int)
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
for _ in range(1000):
selected_model = router.get_available_deployment("gpt-3.5-turbo")
selected_model_id = selected_model["litellm_params"]["model"]
@@ -120,10 +120,10 @@ def test_weighted_selection_router_tpm():
total_requests = sum(selection_counts.values())
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
- selection_counts["azure/chatgpt-v-3"] / total_requests > 0.89
- ), f"Assertion failed: 'azure/chatgpt-v-3' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
+ selection_counts["azure/gpt-4.1-nano"] / total_requests > 0.89
+ ), f"Assertion failed: 'azure/gpt-4.1-nano' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
router.reset()
except Exception as e:
@@ -153,7 +153,7 @@ def test_weighted_selection_router_tpm_as_router_param():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -166,7 +166,7 @@ def test_weighted_selection_router_tpm_as_router_param():
)
selection_counts = defaultdict(int)
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
for _ in range(1000):
selected_model = router.get_available_deployment("gpt-3.5-turbo")
selected_model_id = selected_model["litellm_params"]["model"]
@@ -176,10 +176,10 @@ def test_weighted_selection_router_tpm_as_router_param():
total_requests = sum(selection_counts.values())
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
- selection_counts["azure/chatgpt-v-3"] / total_requests > 0.89
- ), f"Assertion failed: 'azure/chatgpt-v-3' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
+ selection_counts["azure/gpt-4.1-nano"] / total_requests > 0.89
+ ), f"Assertion failed: 'azure/gpt-4.1-nano' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
router.reset()
except Exception as e:
@@ -210,7 +210,7 @@ def test_weighted_selection_router_rpm_as_router_param():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -224,7 +224,7 @@ def test_weighted_selection_router_rpm_as_router_param():
)
selection_counts = defaultdict(int)
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
for _ in range(1000):
selected_model = router.get_available_deployment("gpt-3.5-turbo")
selected_model_id = selected_model["litellm_params"]["model"]
@@ -234,10 +234,10 @@ def test_weighted_selection_router_rpm_as_router_param():
total_requests = sum(selection_counts.values())
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
- selection_counts["azure/chatgpt-v-3"] / total_requests > 0.89
- ), f"Assertion failed: 'azure/chatgpt-v-3' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
+ selection_counts["azure/gpt-4.1-nano"] / total_requests > 0.89
+ ), f"Assertion failed: 'azure/gpt-4.1-nano' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
router.reset()
except Exception as e:
@@ -266,7 +266,7 @@ def test_weighted_selection_router_no_rpm_set():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -286,7 +286,7 @@ def test_weighted_selection_router_no_rpm_set():
)
selection_counts = defaultdict(int)
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
for _ in range(1000):
selected_model = router.get_available_deployment("claude-1")
selected_model_id = selected_model["litellm_params"]["model"]
@@ -296,7 +296,7 @@ def test_weighted_selection_router_no_rpm_set():
total_requests = sum(selection_counts.values())
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
selection_counts["bedrock/claude1.2"] / total_requests == 1
), f"Assertion failed: Selection counts {selection_counts}"
@@ -325,7 +325,7 @@ def test_model_group_aliases():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -358,7 +358,7 @@ def test_model_group_aliases():
)
# test that
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
selection_counts = defaultdict(int)
for _ in range(1000):
selected_model = router.get_available_deployment("gpt-3.5-turbo")
@@ -369,10 +369,10 @@ def test_model_group_aliases():
total_requests = sum(selection_counts.values())
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
- selection_counts["azure/chatgpt-v-3"] / total_requests > 0.89
- ), f"Assertion failed: 'azure/chatgpt-v-3' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
+ selection_counts["azure/gpt-4.1-nano"] / total_requests > 0.89
+ ), f"Assertion failed: 'azure/gpt-4.1-nano' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
router.reset()
except Exception as e:
@@ -553,7 +553,7 @@ async def test_weighted_selection_router_async(rpm_list, tpm_list):
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"api_version": os.getenv("AZURE_API_VERSION"),
@@ -567,7 +567,7 @@ async def test_weighted_selection_router_async(rpm_list, tpm_list):
)
selection_counts = defaultdict(int)
- # call get_available_deployment 1k times, it should pick azure/chatgpt-v-3 about 90% of the time
+ # call get_available_deployment 1k times, it should pick azure/gpt-4.1-nano about 90% of the time
for _ in range(1000):
selected_model = await router.async_get_available_deployment(
"gpt-3.5-turbo", request_kwargs={}
@@ -580,13 +580,13 @@ async def test_weighted_selection_router_async(rpm_list, tpm_list):
total_requests = sum(selection_counts.values())
if rpm_list[0] is not None or tpm_list[0] is not None:
- # Assert that 'azure/chatgpt-v-3' has about 90% of the total requests
+ # Assert that 'azure/gpt-4.1-nano' has about 90% of the total requests
assert (
- selection_counts["azure/chatgpt-v-3"] / total_requests > 0.89
- ), f"Assertion failed: 'azure/chatgpt-v-3' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
+ selection_counts["azure/gpt-4.1-nano"] / total_requests > 0.89
+ ), f"Assertion failed: 'azure/gpt-4.1-nano' does not have about 90% of the total requests in the weighted load balancer. Selection counts {selection_counts}"
else:
# Assert both are used
- assert selection_counts["azure/chatgpt-v-3"] > 0
+ assert selection_counts["azure/gpt-4.1-nano"] > 0
assert selection_counts["gpt-3.5-turbo"] > 0
router.reset()
except Exception as e:
diff --git a/tests/local_testing/test_router_init.py b/tests/local_testing/test_router_init.py
index dd2d43dc26c..1c7ab459080 100644
--- a/tests/local_testing/test_router_init.py
+++ b/tests/local_testing/test_router_init.py
@@ -40,7 +40,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
@@ -96,7 +96,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
@@ -134,7 +134,7 @@
# {
# "model_name": "azure-cloudflare",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": "https://gateway.ai.cloudflare.com/v1/0399b10e77ac6668c80404a5ff49eb37/litellm-test/azure-openai/openai-gpt-4-test-v-1",
@@ -201,7 +201,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
@@ -254,7 +254,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
@@ -615,7 +615,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
@@ -660,7 +660,7 @@
# {
# "model_name": "gpt-3.5-turbo",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_version": os.getenv("AZURE_API_VERSION"),
# "api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_router_retries.py b/tests/local_testing/test_router_retries.py
index d028010afaa..9246ea1801d 100644
--- a/tests/local_testing/test_router_retries.py
+++ b/tests/local_testing/test_router_retries.py
@@ -166,7 +166,7 @@ async def test_router_retry_policy(error_type):
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -175,7 +175,7 @@ async def test_router_retry_policy(error_type):
{
"model_name": "bad-model", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -275,7 +275,7 @@ async def test_dynamic_router_retry_policy(model_group):
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -287,7 +287,7 @@ async def test_dynamic_router_retry_policy(model_group):
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -299,7 +299,7 @@ async def test_dynamic_router_retry_policy(model_group):
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -311,7 +311,7 @@ async def test_dynamic_router_retry_policy(model_group):
{
"model_name": "bad-model", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -393,7 +393,7 @@ def test_retry_rate_limit_error_with_healthy_deployments():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -426,7 +426,7 @@ def test_do_retry_rate_limit_error_with_no_fallbacks_and_no_healthy_deployments(
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -459,14 +459,14 @@ def test_raise_context_window_exceeded_error():
llm_provider="azure",
model="gpt-3.5-turbo",
)
- context_window_fallbacks = [{"gpt-3.5-turbo": ["azure/chatgpt-v-3"]}]
+ context_window_fallbacks = [{"gpt-3.5-turbo": ["azure/gpt-4.1-nano"]}]
router = Router(
model_list=[
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -508,7 +508,7 @@ def test_raise_context_window_exceeded_error_no_retry():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -562,7 +562,7 @@ def test_timeout_for_rate_limit_error_with_healthy_deployments(
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -589,7 +589,7 @@ def test_timeout_for_rate_limit_error_with_healthy_deployments(
"litellm_params": {
"api_key": "my-key",
"api_base": "https://openai-gpt-4-test-v-1.openai.azure.com",
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
},
"model_info": {
"id": "0e30bc8a63fa91ae4415d4234e231b3f9e6dd900cac57d118ce13a720d95e9d6",
@@ -615,7 +615,7 @@ def test_timeout_for_rate_limit_error_with_no_healthy_deployments():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -650,7 +650,7 @@ def test_no_retry_for_not_found_error_404():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -709,7 +709,7 @@ def test_no_retry_when_no_healthy_deployments():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_router_timeout.py b/tests/local_testing/test_router_timeout.py
index 882c1684356..7a04db1b3b9 100644
--- a/tests/local_testing/test_router_timeout.py
+++ b/tests/local_testing/test_router_timeout.py
@@ -30,7 +30,7 @@ def test_router_timeouts():
{
"model_name": "openai-gpt-4",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "os.environ/AZURE_API_KEY",
"api_base": "os.environ/AZURE_API_BASE",
"api_version": "os.environ/AZURE_API_VERSION",
diff --git a/tests/local_testing/test_router_utils.py b/tests/local_testing/test_router_utils.py
index e5ead7a7019..e27588babcb 100644
--- a/tests/local_testing/test_router_utils.py
+++ b/tests/local_testing/test_router_utils.py
@@ -32,7 +32,7 @@ def test_returned_settings():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -96,7 +96,7 @@ def test_update_kwargs_before_fallbacks_unit_test():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
@@ -133,7 +133,7 @@ async def test_update_kwargs_before_fallbacks(call_type):
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/local_testing/test_timeout.py b/tests/local_testing/test_timeout.py
index 007c32e4476..92f6435ea96 100644
--- a/tests/local_testing/test_timeout.py
+++ b/tests/local_testing/test_timeout.py
@@ -22,7 +22,7 @@ import litellm
"model, provider",
[
("gpt-3.5-turbo", "openai"),
- ("azure/chatgpt-v-3", "azure"),
+ ("azure/gpt-4.1-nano", "azure"),
],
)
@pytest.mark.parametrize("sync_mode", [True, False])
@@ -157,7 +157,7 @@ def test_hanging_request_openai():
{
"model_name": "azure-gpt",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_base": os.environ["AZURE_API_BASE"],
"api_key": os.environ["AZURE_API_KEY"],
},
diff --git a/tests/local_testing/test_tpm_rpm_routing_v2.py b/tests/local_testing/test_tpm_rpm_routing_v2.py
index 6464362c7c3..92d2d59785e 100644
--- a/tests/local_testing/test_tpm_rpm_routing_v2.py
+++ b/tests/local_testing/test_tpm_rpm_routing_v2.py
@@ -45,7 +45,7 @@ def test_tpm_rpm_updated():
)
model_group = "gpt-3.5-turbo"
deployment_id = "1234"
- deployment = "azure/chatgpt-v-3"
+ deployment = "azure/gpt-4.1-nano"
total_tokens = 50
standard_logging_payload: StandardLoggingPayload = create_standard_logging_payload()
standard_logging_payload["model_group"] = model_group
@@ -100,12 +100,12 @@ def test_get_available_deployments():
model_list = [
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "1234"},
},
{
"model_name": "gpt-3.5-turbo",
- "litellm_params": {"model": "azure/chatgpt-v-3"},
+ "litellm_params": {"model": "azure/gpt-4.1-nano"},
"model_info": {"id": "5678"},
},
]
@@ -116,7 +116,7 @@ def test_get_available_deployments():
## DEPLOYMENT 1 ##
total_tokens = 50
deployment_id = "1234"
- deployment = "azure/chatgpt-v-3"
+ deployment = "azure/gpt-4.1-nano"
standard_logging_payload = create_standard_logging_payload()
standard_logging_payload["model_group"] = model_group
standard_logging_payload["model_id"] = deployment_id
@@ -733,7 +733,7 @@ async def test_tpm_rpm_routing_model_name_checks():
deployment = {
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_base": os.getenv("AZURE_API_BASE"),
"mock_response": "Hey, how's it going?",
@@ -775,5 +775,5 @@ async def test_tpm_rpm_routing_model_name_checks():
assert (
standard_logging_payload["hidden_params"]["litellm_model_name"]
- == "azure/chatgpt-v-3"
+ == "azure/gpt-4.1-nano"
)
diff --git a/tests/logging_callback_tests/test_amazing_s3_logs.py b/tests/logging_callback_tests/test_amazing_s3_logs.py
index c9d0987e86f..c471f23b95f 100644
--- a/tests/logging_callback_tests/test_amazing_s3_logs.py
+++ b/tests/logging_callback_tests/test_amazing_s3_logs.py
@@ -384,7 +384,7 @@ async def make_async_calls():
for _ in range(5):
task = asyncio.create_task(
litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "This is a test"}],
max_tokens=5,
temperature=0.7,
diff --git a/tests/logging_callback_tests/test_custom_callback_router.py b/tests/logging_callback_tests/test_custom_callback_router.py
index 1e3f5f4cfb9..64cafb875b5 100644
--- a/tests/logging_callback_tests/test_custom_callback_router.py
+++ b/tests/logging_callback_tests/test_custom_callback_router.py
@@ -546,7 +546,7 @@ async def test_async_chat_azure_with_fallbacks():
{
"model_name": "gpt-3.5-turbo", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": "my-bad-key",
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),
diff --git a/tests/logging_callback_tests/test_spend_logs.py b/tests/logging_callback_tests/test_spend_logs.py
index 500419eb04d..6b1ef916734 100644
--- a/tests/logging_callback_tests/test_spend_logs.py
+++ b/tests/logging_callback_tests/test_spend_logs.py
@@ -89,7 +89,7 @@ def test_spend_logs_payload(model_id: Optional[str]):
},
"endpoint": "http://localhost:4000/chat/completions",
"model_group": "gpt-3.5-turbo",
- "deployment": "azure/chatgpt-v-3",
+ "deployment": "azure/gpt-4.1-nano",
"model_info": {
"id": "4bad40a1eb6bebd1682800f16f44b9f06c52a6703444c99c7f9f32e9de3693b4",
"db_model": False,
diff --git a/tests/old_proxy_tests/tests/load_test_q.py b/tests/old_proxy_tests/tests/load_test_q.py
index a0e22eda5a4..a50b0fbcabf 100644
--- a/tests/old_proxy_tests/tests/load_test_q.py
+++ b/tests/old_proxy_tests/tests/load_test_q.py
@@ -25,7 +25,7 @@ config = {
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.environ["AZURE_API_KEY"],
"api_base": "https://openai-gpt-4-test-v-1.openai.azure.com/",
"api_version": "2023-07-01-preview",
diff --git a/tests/old_proxy_tests/tests/test_langchain_request.py b/tests/old_proxy_tests/tests/test_langchain_request.py
index 901edd783a5..0f7c3b3af2d 100644
--- a/tests/old_proxy_tests/tests/test_langchain_request.py
+++ b/tests/old_proxy_tests/tests/test_langchain_request.py
@@ -9,7 +9,7 @@
# chat = ChatOpenAI(
# openai_api_base="http://0.0.0.0:8000",
-# model = "azure/chatgpt-v-3",
+# model = "azure/gpt-4.1-nano",
# temperature=0.1,
# extra_body={
# "metadata": {
diff --git a/tests/old_proxy_tests/tests/test_openai_request.py b/tests/old_proxy_tests/tests/test_openai_request.py
index 41b8c43f2d7..21d2a01be6f 100644
--- a/tests/old_proxy_tests/tests/test_openai_request.py
+++ b/tests/old_proxy_tests/tests/test_openai_request.py
@@ -4,7 +4,7 @@ client = openai.OpenAI(api_key="hi", base_url="http://0.0.0.0:8000")
# # request sent to model set on litellm proxy, `litellm --model`
response = client.chat.completions.create(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[
{"role": "user", "content": "this is a test request, write a short poem"}
],
diff --git a/tests/proxy_unit_tests/example_config_yaml/azure_config.yaml b/tests/proxy_unit_tests/example_config_yaml/azure_config.yaml
index 111813c8840..a0300bd6d17 100644
--- a/tests/proxy_unit_tests/example_config_yaml/azure_config.yaml
+++ b/tests/proxy_unit_tests/example_config_yaml/azure_config.yaml
@@ -1,7 +1,7 @@
model_list:
- model_name: gpt-4-team1
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: https://openai-gpt-4-test-v-1.openai.azure.com/
api_version: "2023-05-15"
api_key: os.environ/AZURE_API_KEY
diff --git a/tests/proxy_unit_tests/test_configs/test_bad_config.yaml b/tests/proxy_unit_tests/test_configs/test_bad_config.yaml
index 0a16ecb3c5b..08f6c249711 100644
--- a/tests/proxy_unit_tests/test_configs/test_bad_config.yaml
+++ b/tests/proxy_unit_tests/test_configs/test_bad_config.yaml
@@ -5,12 +5,12 @@ model_list:
model: gpt-3.5-turbo
- model_name: working-azure-gpt-3.5-turbo
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: os.environ/AZURE_API_BASE
api_key: os.environ/AZURE_API_KEY
- model_name: azure-gpt-3.5-turbo
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: os.environ/AZURE_API_BASE
api_key: bad-key
- model_name: azure-embedding
diff --git a/tests/proxy_unit_tests/test_configs/test_cloudflare_azure_with_cache_config.yaml b/tests/proxy_unit_tests/test_configs/test_cloudflare_azure_with_cache_config.yaml
index aeadbeb8728..acb07858501 100644
--- a/tests/proxy_unit_tests/test_configs/test_cloudflare_azure_with_cache_config.yaml
+++ b/tests/proxy_unit_tests/test_configs/test_cloudflare_azure_with_cache_config.yaml
@@ -1,7 +1,7 @@
model_list:
- model_name: azure-cloudflare
litellm_params:
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
api_base: https://gateway.ai.cloudflare.com/v1/0399b10e77ac6668c80404a5ff49eb37/litellm-test/azure-openai/openai-gpt-4-test-v-1
api_key: os.environ/AZURE_API_KEY
api_version: 2023-07-01-preview
diff --git a/tests/proxy_unit_tests/test_configs/test_config_no_auth.yaml b/tests/proxy_unit_tests/test_configs/test_config_no_auth.yaml
index 075bf7a09d5..a1d14a53655 100644
--- a/tests/proxy_unit_tests/test_configs/test_config_no_auth.yaml
+++ b/tests/proxy_unit_tests/test_configs/test_config_no_auth.yaml
@@ -12,7 +12,7 @@ model_list:
- litellm_params:
api_base: https://gateway.ai.cloudflare.com/v1/0399b10e77ac6668c80404a5ff49eb37/litellm-test/azure-openai/openai-gpt-4-test-v-1
api_key: os.environ/AZURE_API_KEY
- model: azure/chatgpt-v-3
+ model: azure/gpt-4.1-nano
model_name: azure-cloudflare-model
- litellm_params:
api_base: https://openai-france-1234.openai.azure.com
diff --git a/tests/proxy_unit_tests/test_proxy_pass_user_config.py b/tests/proxy_unit_tests/test_proxy_pass_user_config.py
index 3ecc252264e..7b05bddd3a5 100644
--- a/tests/proxy_unit_tests/test_proxy_pass_user_config.py
+++ b/tests/proxy_unit_tests/test_proxy_pass_user_config.py
@@ -64,7 +64,7 @@ def test_chat_completion(client_no_auth):
ModelConfig(
model_name="user-azure-instance",
litellm_params=CompletionRequest(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
api_key=os.getenv("AZURE_API_KEY"),
api_version=os.getenv("AZURE_API_VERSION"),
api_base=os.getenv("AZURE_API_BASE"),
diff --git a/tests/proxy_unit_tests/test_proxy_server.py b/tests/proxy_unit_tests/test_proxy_server.py
index 4e72580b8be..712207bdf2d 100644
--- a/tests/proxy_unit_tests/test_proxy_server.py
+++ b/tests/proxy_unit_tests/test_proxy_server.py
@@ -452,7 +452,7 @@ def test_chat_completion_azure(mock_acompletion, client_no_auth):
try:
# Your test data
test_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -463,7 +463,7 @@ def test_chat_completion_azure(mock_acompletion, client_no_auth):
response = client_no_auth.post("/v1/chat/completions", json=test_data)
mock_acompletion.assert_called_once_with(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -496,19 +496,19 @@ def test_openai_deployments_model_chat_completions_azure(
try:
# Your test data
test_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [
{"role": "user", "content": "write 1 sentence poem"},
],
"max_tokens": 10,
}
- url = "/openai/deployments/azure/chatgpt-v-3/chat/completions"
+ url = "/openai/deployments/azure/gpt-4.1-nano/chat/completions"
print(f"testing proxy server with Azure Request {url}")
response = client_no_auth.post(url, json=test_data)
mock_acompletion.assert_called_once_with(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -1322,7 +1322,7 @@ async def test_add_callback_via_key(prisma_client):
try:
# Your test data
test_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -1416,7 +1416,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils(
request._url = URL(url="/chat/completions")
test_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -1431,7 +1431,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils(
data = {
"data": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [{"role": "user", "content": "write 1 sentence poem"}],
"max_tokens": 10,
"mock_response": "Hello world",
@@ -1531,7 +1531,7 @@ async def test_disable_fallbacks_by_key(disable_fallbacks_set):
key_metadata = {"disable_fallbacks": disable_fallbacks_set}
existing_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [{"role": "user", "content": "write 1 sentence poem"}],
}
data = LiteLLMProxyRequestSetup.add_key_level_controls(
@@ -1572,7 +1572,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils_gcs_bucket(
request._url = URL(url="/chat/completions")
test_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -1587,7 +1587,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils_gcs_bucket(
data = {
"data": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [{"role": "user", "content": "write 1 sentence poem"}],
"max_tokens": 10,
"mock_response": "Hello world",
@@ -1705,7 +1705,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils_langsmith(
request._url = URL(url="/chat/completions")
test_data = {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [
{"role": "user", "content": "write 1 sentence poem"},
],
@@ -1720,7 +1720,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils_langsmith(
data = {
"data": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"messages": [{"role": "user", "content": "write 1 sentence poem"}],
"max_tokens": 10,
"mock_response": "Hello world",
diff --git a/tests/proxy_unit_tests/test_proxy_server_keys.py b/tests/proxy_unit_tests/test_proxy_server_keys.py
index 8b8e943ba74..77c18448392 100644
--- a/tests/proxy_unit_tests/test_proxy_server_keys.py
+++ b/tests/proxy_unit_tests/test_proxy_server_keys.py
@@ -171,7 +171,7 @@
# model_data = {
# "model_name": "azure-model",
# "litellm_params": {
-# "model": "azure/chatgpt-v-3",
+# "model": "azure/gpt-4.1-nano",
# "api_key": os.getenv("AZURE_API_KEY"),
# "api_base": os.getenv("AZURE_API_BASE"),
# "api_version": os.getenv("AZURE_API_VERSION")
diff --git a/tests/test_litellm/test_router.py b/tests/test_litellm/test_router.py
index de7c3a74c21..877a9d069e7 100644
--- a/tests/test_litellm/test_router.py
+++ b/tests/test_litellm/test_router.py
@@ -23,7 +23,7 @@ def test_update_kwargs_does_not_mutate_defaults_and_merges_metadata():
{
"model_name": "gpt-3.5-turbo",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
+ "model": "azure/gpt-4.1-nano",
"api_key": os.getenv("AZURE_API_KEY"),
"api_version": os.getenv("AZURE_API_VERSION"),
"api_base": os.getenv("AZURE_API_BASE"),