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 Jaffere96c61a3cbc2
diff --git a/tests/llm_translation/test_azure_openai.py b/tests/llm_translation/test_azure_openai.pyindex aa69ce4f42c..671fa0abcf5 100644--- a/tests/llm_translation/test_azure_openai.py+++ b/tests/llm_translation/test_azure_openai.py@@ -636,14 +636,16 @@ 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}")+ litellm.set_verbose = True+ response = completion(+ deployment_id="gpt-4.1-mini",+ model="gpt-3.5-turbo",+ messages=[+ {+ "role": "user",+ "content": "Hello, how are you?",+ }+ ],+ )+ # Add any assertions here to check the response+ print(response)\ No newline at end of file