Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Ishaan Jaff
add254f8f5 fix don't retry BadRequestError on router 2024-11-14 14:06:03 -08:00

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