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]

fix(__init__.py): bump default allowed fails

Krrish Dholakia5f6f1bdad4b2
diff --git a/litellm/__init__.py b/litellm/__init__.py
index bf084e20118..dfc3f3fc1bb 100644
--- a/litellm/__init__.py
+++ b/litellm/__init__.py
@@ -271,7 +271,7 @@ default_fallbacks: Optional[List] = None
fallbacks: Optional[List] = None
context_window_fallbacks: Optional[List] = None
content_policy_fallbacks: Optional[List] = None
-allowed_fails: int = 0
+allowed_fails: int = 3
num_retries_per_request: Optional[int] = (
None # for the request overall (incl. fallbacks + model retries)
)