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: fix tests
Krrish Dholakia23f3642a15fa
diff --git a/tests/local_testing/test_router.py b/tests/local_testing/test_router.pyindex 4deb589439d..678d5578046 100644--- a/tests/local_testing/test_router.py+++ b/tests/local_testing/test_router.py@@ -194,6 +194,9 @@ def test_router_specific_model_via_id():router.completion(model="1234", messages=[{"role": "user", "content": "Hey!"}])+ reason="Router no longer creates clients, this is delegated to the provider integration."+)def test_router_azure_ai_client_init():_deployment = {@@ -219,6 +222,9 @@ def test_router_azure_ai_client_init():assert not isinstance(_client, AsyncAzureOpenAI)+ reason="Router no longer creates clients, this is delegated to the provider integration."+)def test_router_azure_ad_token_provider():_deployment = {"model_name": "gpt-4o_2024-05-13",@@ -247,8 +253,10 @@ def test_router_azure_ad_token_provider():assert isinstance(_client, AsyncAzureOpenAI)assert _client._azure_ad_token_provider is not Noneassert isinstance(_client._azure_ad_token_provider.__closure__, tuple)- assert isinstance(_client._azure_ad_token_provider.__closure__[0].cell_contents._credential,- getattr(identity, os.environ["AZURE_CREDENTIAL"]))+ assert isinstance(+ _client._azure_ad_token_provider.__closure__[0].cell_contents._credential,+ getattr(identity, os.environ["AZURE_CREDENTIAL"]),+ )def test_router_sensitive_keys():