From 6ccff1b13e71a761cfbe2bd9582a49dd09afe248 Mon Sep 17 00:00:00 2001 From: Krish Dholakia Date: Mon, 2 Sep 2024 22:03:21 -0700 Subject: [PATCH] fix(router.py): fix inherited type (#5485) --- litellm/types/router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/types/router.py b/litellm/types/router.py index ba1a089017..cb4273a6a3 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)