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_router_get_available_deployments
Ishaan Jaffere878f2b1efda
diff --git a/tests/local_testing/test_least_busy_routing.py b/tests/local_testing/test_least_busy_routing.pyindex 479b805aaab..2d7605ebb68 100644--- a/tests/local_testing/test_least_busy_routing.py+++ b/tests/local_testing/test_least_busy_routing.py@@ -75,9 +75,8 @@ async def test_router_get_available_deployments(async_test):{"model_name": "azure-model","litellm_params": {- "model": "azure/gpt-turbo",- "api_key": "os.environ/AZURE_FRANCE_API_KEY",- "api_base": "https://openai-france-1234.openai.azure.com",+ "model": "openai/gpt-4.1-mini",+ "api_key": "os.environ/OPENAI_API_KEY","rpm": 1440,},"model_info": {"id": 1},@@ -85,9 +84,8 @@ async def test_router_get_available_deployments(async_test):{"model_name": "azure-model","litellm_params": {- "model": "azure/gpt-35-turbo",- "api_key": "os.environ/AZURE_EUROPE_API_KEY",- "api_base": "https://my-endpoint-europe-berri-992.openai.azure.com",+ "model": "openai/gpt-4.1-mini",+ "api_key": "os.environ/OPENAI_API_KEY","rpm": 6,},"model_info": {"id": 2},@@ -95,9 +93,8 @@ async def test_router_get_available_deployments(async_test):{"model_name": "azure-model","litellm_params": {- "model": "azure/gpt-35-turbo",- "api_key": "os.environ/AZURE_CANADA_API_KEY",- "api_base": "https://my-endpoint-canada-berri992.openai.azure.com",+ "model": "openai/gpt-4.1-mini",+ "api_key": "os.environ/OPENAI_API_KEY","rpm": 6,},"model_info": {"id": 3},@@ -113,7 +110,6 @@ async def test_router_get_available_deployments(async_test):router.leastbusy_logger.test_flag = Truemodel_group = "azure-model"- deployment = "azure/gpt-4.1-mini"request_count_dict = {1: 10, 2: 54, 3: 100}cache_key = f"{model_group}_request_count"if async_test is True: