mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
This commit is contained in:
parent
bf60e58d5b
commit
e2dff0a74b
1 changed files with 11 additions and 6 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue