fix: add missing AnthropicError exception to retry list

This commit is contained in:
Paul Gauthier 2024-10-25 07:31:05 -07:00
parent 29293cc8ac
commit be74259df6

View file

@ -29,7 +29,10 @@ def retry_exceptions():
litellm.exceptions.ServiceUnavailableError, litellm.exceptions.ServiceUnavailableError,
litellm.exceptions.Timeout, litellm.exceptions.Timeout,
litellm.exceptions.InternalServerError, litellm.exceptions.InternalServerError,
# These are apparently different?
# https://github.com/search?q=repo%3ABerriAI%2Flitellm%20AnthropicError&type=code
litellm.llms.anthropic.common_utils.AnthropicError, litellm.llms.anthropic.common_utils.AnthropicError,
litellm.llms.anthropic.completion.AnthropicError,
) )