Merge branch 'main' into watch

This commit is contained in:
Paul Gauthier 2024-10-25 15:54:31 -07:00
commit c2dadd8054

View file

@ -20,19 +20,24 @@ def retry_exceptions():
import httpx
return (
# httpx
httpx.ConnectError,
httpx.RemoteProtocolError,
httpx.ReadTimeout,
# litellm
litellm.exceptions.BadRequestError,
litellm.exceptions.AuthenticationError,
litellm.exceptions.PermissionDeniedError,
litellm.exceptions.NotFoundError,
litellm.exceptions.UnprocessableEntityError,
litellm.exceptions.RateLimitError,
litellm.exceptions.InternalServerError,
litellm.exceptions.ContextWindowExceededError,
litellm.exceptions.ContentPolicyViolationError,
litellm.exceptions.APIConnectionError,
litellm.exceptions.APIError,
litellm.exceptions.RateLimitError,
litellm.exceptions.ServiceUnavailableError,
litellm.exceptions.Timeout,
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.completion.AnthropicError,
)