mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix - return in LITELLM_EXCEPTION_TYPES
This commit is contained in:
parent
3caa9dfec6
commit
cfc55b39a9
1 changed files with 4 additions and 0 deletions
|
@ -2295,6 +2295,10 @@ class Router:
|
|||
healthy_deployments=_healthy_deployments,
|
||||
)
|
||||
time.sleep(_timeout)
|
||||
|
||||
if type(original_exception) in litellm.LITELLM_EXCEPTION_TYPES:
|
||||
original_exception.max_retries = num_retries
|
||||
original_exception.num_retries = current_attempt
|
||||
raise original_exception
|
||||
|
||||
### HELPER FUNCTIONS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue