mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
b1f026d09e
commit
ec5e1aa12a
1 changed files with 2 additions and 2 deletions
|
|
@ -5796,8 +5796,8 @@ class Router:
|
|||
# (0) before raising so error messages reflect reality instead of
|
||||
# carrying a stale value injected by the @client decorator.
|
||||
if type(original_exception) in litellm.LITELLM_EXCEPTION_TYPES:
|
||||
setattr(original_exception, "max_retries", 0)
|
||||
setattr(original_exception, "num_retries", 0)
|
||||
setattr(original_exception, "max_retries", num_retries)
|
||||
setattr(original_exception, "num_retries", num_retries)
|
||||
raise
|
||||
|
||||
verbose_router_logger.debug(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue