Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Oct 25, 2024
1 parent bf60e58 commit e2dff0a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions aider/sendchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down

0 comments on commit e2dff0a

Please sign in to comment.