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_router_with_caching

Ishaan Jaffer5e2479d7a3aa
diff --git a/tests/local_testing/test_prometheus_service.py b/tests/local_testing/test_prometheus_service.py
index be620a0c7c2..3bcae6336d2 100644
--- a/tests/local_testing/test_prometheus_service.py
+++ b/tests/local_testing/test_prometheus_service.py
@@ -92,24 +92,22 @@ async def test_router_with_caching():
"""
try:
- def get_azure_params(deployment_name: str):
+ def get_openai_params():
params = {
- "model": f"azure/{deployment_name}",
- "api_key": os.environ["AZURE_API_KEY"],
- "api_version": os.environ["AZURE_API_VERSION"],
- "api_base": os.environ["AZURE_API_BASE"],
+ "model": "gpt-4.1-nano",
+ "api_key": os.environ["OPENAI_API_KEY"],
}
return params
model_list = [
{
"model_name": "azure/gpt-4",
- "litellm_params": get_azure_params("gpt-4o-new-test"),
+ "litellm_params": get_openai_params(),
"tpm": 100,
},
{
"model_name": "azure/gpt-4",
- "litellm_params": get_azure_params("gpt-4o-new-test"),
+ "litellm_params": get_openai_params(),
"tpm": 1000,
},
]