diff --git a/litellm/router.py b/litellm/router.py index 97065bc85..a7e4617bf 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -3041,6 +3041,8 @@ class Router: ): raise error + if isinstance(error, litellm.BadRequestError): + raise error if isinstance(error, litellm.NotFoundError): raise error # Error we should only retry if there are other deployments