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_deployment_id
Ishaan Jaffere6b61213ca6c
diff --git a/tests/llm_translation/test_azure_openai.py b/tests/llm_translation/test_azure_openai.pyindex edca8c46c9a..aa69ce4f42c 100644--- a/tests/llm_translation/test_azure_openai.py+++ b/tests/llm_translation/test_azure_openai.py@@ -630,3 +630,20 @@ def test_azure_openai_responses_bridge():== "test-azure-computer-use-preview")assert mock_responses.call_args.kwargs["custom_llm_provider"] == "azure"+++def test_completion_azure_deployment_id():+ """+ Ensure deployment_id takes precedence over model.+ """+ try:+ litellm.set_verbose = True+ response = completion(+ deployment_id="gpt-4.1-mini",+ model="gpt-3.5-turbo",+ messages=messages,+ )+ # Add any assertions here to check the response+ print(response)+ except Exception as e:+ pytest.fail(f"Error occurred: {e}")diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.pyindex 01f019b91c6..e2d691f8bfb 100644--- a/tests/local_testing/test_completion.py+++ b/tests/local_testing/test_completion.py@@ -2681,22 +2681,6 @@ def test_completion_azure_with_litellm_key():# test_completion_azure()-def test_completion_azure_deployment_id():- try:- litellm.set_verbose = True- response = completion(- deployment_id="gpt-4.1-nano",- model="gpt-3.5-turbo",- messages=messages,- )- # Add any assertions here to check the response- print(response)- except Exception as e:- pytest.fail(f"Error occurred: {e}")---# test_completion_azure_deployment_id()-import asynciodiff --git a/tests/local_testing/test_function_calling.py b/tests/local_testing/test_function_calling.pyindex 1312c4dcc6b..7aa2584f6ab 100644--- a/tests/local_testing/test_function_calling.py+++ b/tests/local_testing/test_function_calling.py@@ -50,7 +50,7 @@ def get_current_weather(location, unit="fahrenheit"):"claude-3-haiku-20240307","gemini/gemini-2.5-flash-lite","anthropic.claude-3-sonnet-20240229-v1:0",- "cohere_chat/command-r",+ "cohere_chat/command-a-03-2025",],)@pytest.mark.flaky(retries=3, delay=1)