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(router.py): fix inherited type (#5485)

Krish Dholakia6ccff1b13e71
diff --git a/litellm/types/router.py b/litellm/types/router.py
index ba1a089017d..cb4273a6a3f 100644
--- a/litellm/types/router.py
+++ b/litellm/types/router.py
@@ -568,7 +568,7 @@ class RouterRateLimitErrorBasic(ValueError):
super().__init__(_message)
-class RouterRateLimitError(RateLimitError):
+class RouterRateLimitError(ValueError):
def __init__(
self,
model: str,
@@ -581,4 +581,4 @@ class RouterRateLimitError(RateLimitError):
self.enable_pre_call_checks = enable_pre_call_checks
self.cooldown_list = cooldown_list
_message = f"{RouterErrors.no_deployments_available.value}, Try again in {cooldown_time} seconds. Passed model={model}. pre-call-checks={enable_pre_call_checks}, cooldown_list={cooldown_list}"
- super().__init__(_message, llm_provider="", model=model)
+ super().__init__(_message)