fix don't retry BadRequestError on router

This commit is contained in:
Ishaan Jaff 2024-11-14 14:06:03 -08:00
parent fc685c1f74
commit add254f8f5

View file

@ -3041,6 +3041,8 @@ class Router:
): ):
raise error raise error
if isinstance(error, litellm.BadRequestError):
raise error
if isinstance(error, litellm.NotFoundError): if isinstance(error, litellm.NotFoundError):
raise error raise error
# Error we should only retry if there are other deployments # Error we should only retry if there are other deployments