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]

set flaky tests as flaky

Ishaan Jaffe3094c2249c5
diff --git a/tests/llm_translation/test_gemini.py b/tests/llm_translation/test_gemini.py
index 710a8602b15..0f094552820 100644
--- a/tests/llm_translation/test_gemini.py
+++ b/tests/llm_translation/test_gemini.py
@@ -194,7 +194,7 @@ def test_gemini_url_context():
assert urlMetadata['urlRetrievalStatus'] == 'URL_RETRIEVAL_STATUS_SUCCESS'
-
[email protected](retries=3, delay=2)
def test_gemini_with_grounding():
from litellm import completion, Usage, stream_chunk_builder
litellm._turn_on_debug()
diff --git a/tests/local_testing/test_router_get_deployments.py b/tests/local_testing/test_router_get_deployments.py
index ff88824d4a4..4d980973414 100644
--- a/tests/local_testing/test_router_get_deployments.py
+++ b/tests/local_testing/test_router_get_deployments.py
@@ -383,6 +383,7 @@ def test_model_group_aliases():
# test_model_group_aliases()
[email protected](retries=3, delay=2)
def test_usage_based_routing():
"""
in this test we, have a model group with two models in it, model-a and model-b.
diff --git a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
index 8dddfc7da74..c2e17d3ef46 100644
--- a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
+++ b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py
@@ -69,7 +69,7 @@ def validate_stream_chunk(chunk):
assert hasattr(chunk, "created")
assert isinstance(chunk.created, int)
-
[email protected](retries=3, delay=2)
def test_basic_response():
client = get_test_client()
response = client.responses.create(
diff --git a/tests/otel_tests/test_prometheus.py b/tests/otel_tests/test_prometheus.py
index 95ecddc15d3..386e9b299be 100644
--- a/tests/otel_tests/test_prometheus.py
+++ b/tests/otel_tests/test_prometheus.py
@@ -126,6 +126,7 @@ async def test_proxy_failure_metrics():
@pytest.mark.asyncio
[email protected](retries=3, delay=2)
async def test_proxy_success_metrics():
"""
Make 1 good /chat/completions call to "openai/gpt-3.5-turbo"
diff --git a/tests/proxy_unit_tests/test_key_generate_prisma.py b/tests/proxy_unit_tests/test_key_generate_prisma.py
index 0e201e43a3f..4b0df3e0f3a 100644
--- a/tests/proxy_unit_tests/test_key_generate_prisma.py
+++ b/tests/proxy_unit_tests/test_key_generate_prisma.py
@@ -1753,6 +1753,7 @@ def test_call_with_key_over_budget_no_cache(prisma_client):
("gpt-4o", True),
],
)
[email protected](retries=3, delay=2)
async def test_call_with_key_over_model_budget(
prisma_client, request_model, should_pass
):