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_completion_azure

Ishaan Jaffer0ea05469bcea
diff --git a/tests/llm_translation/test_azure_ai.py b/tests/llm_translation/test_azure_ai.py
index 91cbcda059b..d2d893a611b 100644
--- a/tests/llm_translation/test_azure_ai.py
+++ b/tests/llm_translation/test_azure_ai.py
@@ -305,7 +305,7 @@ def test_completion_azure():
"content": "Hello, how are you?",
}
],
- api_key="os.environ/AZURE_AI_API_KEY",
+ api_key=os.getenv("AZURE_AI_API_KEY"),
)
print(f"response: {response}")
print(f"response hidden params: {response._hidden_params}")