mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +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 (
|
if (
|
||||||
isinstance(e, openai.APIError)
|
isinstance(e, openai.APIError)
|
||||||
or isinstance(e, openai.Timeout)
|
or isinstance(e, openai.Timeout)
|
||||||
or isinstance(openai.APIConnectionError)
|
or isinstance(e, openai.APIConnectionError)
|
||||||
):
|
):
|
||||||
print_verbose(f"RETRY TRIGGERED!")
|
print_verbose(f"RETRY TRIGGERED!")
|
||||||
kwargs["num_retries"] = num_retries
|
kwargs["num_retries"] = num_retries
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue