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_async_chat_azure_stream

Ishaan Jaffer02cc9133a52d
diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.py
index 9fc370fdcce..d664add136b 100644
--- a/tests/local_testing/test_completion.py
+++ b/tests/local_testing/test_completion.py
@@ -2784,7 +2784,7 @@ def test_completion_azure_deployment_id():
try:
litellm.set_verbose = True
response = completion(
- deployment_id="gpt-4o-new-test",
+ deployment_id="gpt-4.1-nano",
model="gpt-3.5-turbo",
messages=messages,
)
diff --git a/tests/local_testing/test_custom_callback_input.py b/tests/local_testing/test_custom_callback_input.py
index 90e9adb7890..64336f77f0e 100644
--- a/tests/local_testing/test_custom_callback_input.py
+++ b/tests/local_testing/test_custom_callback_input.py
@@ -491,12 +491,12 @@ async def test_async_chat_azure_stream():
customHandler = CompletionCustomHandler()
litellm.callbacks = [customHandler]
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "Hi 👋 - i'm async azure"}],
)
## test streaming
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "Hi 👋 - i'm async azure"}],
stream=True,
)
@@ -507,7 +507,7 @@ async def test_async_chat_azure_stream():
# test failure callback
try:
response = await litellm.acompletion(
- model="azure/chatgpt-v-3",
+ model="azure/gpt-4.1-nano",
messages=[{"role": "user", "content": "Hi 👋 - i'm async azure"}],
api_key="my-bad-key",
stream=True,
@@ -1004,7 +1004,7 @@ def test_turn_off_message_logging():
"model",
[
"ft:gpt-3.5-turbo:my-org:custom_suffix:id"
- ], # "gpt-3.5-turbo", "azure/chatgpt-v-3",
+ ], # "gpt-3.5-turbo", "azure/gpt-4.1-nano",
)
@pytest.mark.parametrize(
"turn_off_message_logging",