mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test + never retry on 404 errors
This commit is contained in:
parent
6f8840daa1
commit
19c3a82d1b
2 changed files with 46 additions and 4 deletions
|
@ -2708,6 +2708,8 @@ class Router:
|
|||
):
|
||||
raise error
|
||||
|
||||
if isinstance(error, litellm.NotFoundError):
|
||||
raise error
|
||||
# Error we should only retry if there are other deployments
|
||||
if isinstance(error, openai.RateLimitError):
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue