mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(utils.py): fix num retries logic
This commit is contained in:
parent
b283588eb8
commit
019b9ef6f6
1 changed files with 1 additions and 1 deletions
|
@ -2585,7 +2585,7 @@ def client(original_function):
|
|||
if (
|
||||
isinstance(e, openai.APIError)
|
||||
or isinstance(e, openai.Timeout)
|
||||
or isinstance(openai.APIConnectionError)
|
||||
or isinstance(e, openai.APIConnectionError)
|
||||
):
|
||||
print_verbose(f"RETRY TRIGGERED!")
|
||||
kwargs["num_retries"] = num_retries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue