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_azure_ai_model_router_streaming_cost_with_stream_options
Ishaan Jaffer7954d1a11ffa
diff --git a/tests/llm_translation/test_azure_ai.py b/tests/llm_translation/test_azure_ai.pyindex d5abca1a49d..4bdcf2ab7bf 100644--- a/tests/llm_translation/test_azure_ai.py+++ b/tests/llm_translation/test_azure_ai.py@@ -477,7 +477,7 @@ async def test_azure_ai_model_router_streaming_cost_with_stream_options():response = await litellm.acompletion(model="azure_ai/azure-model-router",messages=[{"role": "user", "content": "hi"}],- api_base="https://ishaa-mh6uutut-swedencentral.cognitiveservices.azure.com/openai/v1/",+ api_base=os.getenv("AZURE_MODEL_ROUTER_API_BASE"),api_key=os.getenv("AZURE_MODEL_ROUTER_API_KEY"),stream=True,stream_options={"include_usage": True},