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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test_completion_azure_function_calling_stream
Ishaan Jaffer919d680e1863
diff --git a/tests/local_testing/test_streaming.py b/tests/local_testing/test_streaming.pyindex 630ae2b184f..46cacce7d04 100644--- a/tests/local_testing/test_streaming.py+++ b/tests/local_testing/test_streaming.py@@ -243,7 +243,7 @@ tools_schema = [def test_completion_azure_stream_special_char():litellm.set_verbose = Truemessages = [{"role": "user", "content": "hi. respond with the <xml> tag only"}]- response = completion(model="azure/chatgpt-v-3", messages=messages, stream=True)+ response = completion(model="azure/gpt-4.1-nano", messages=messages, stream=True)response_str = ""for part in response:response_str += part.choices[0].delta.content or ""@@ -451,7 +451,7 @@ def test_completion_azure_stream():},]response = completion(- model="azure/chatgpt-v-3", messages=messages, stream=True, max_tokens=50+ model="azure/gpt-4.1-nano", messages=messages, stream=True, max_tokens=50)complete_response = ""# Add any assertions here to check the response@@ -589,7 +589,7 @@ def test_completion_azure_function_calling_stream():user_message = "What is the current weather in Boston?"messages = [{"content": user_message, "role": "user"}]response = completion(- model="azure/chatgpt-functioncalling",+ model="azure/gpt-4.1-nano",messages=messages,stream=True,tools=tools_schema,@@ -1952,7 +1952,7 @@ def test_openai_chat_completion_complete_response_call():"model",["gpt-3.5-turbo",- "azure/chatgpt-v-3",+ "azure/gpt-4.1-nano","claude-3-haiku-20240307","o1","azure/fake-o1-mini",