forked from phoenix/litellm-mirror
fix don't retry BadRequestError on router
This commit is contained in:
parent
fc685c1f74
commit
add254f8f5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue