From 3d66aea572234059d128c971df63d3aab41125ca Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 7 Aug 2024 11:30:43 -0300 Subject: [PATCH] retry sends in most cases --- aider/sendchat.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aider/sendchat.py b/aider/sendchat.py index e3d40c23c..c1ccbbe0e 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -26,6 +26,13 @@ def lazy_litellm_retry_decorator(func): httpx.ConnectError, httpx.RemoteProtocolError, httpx.ReadTimeout, + litellm.exceptions.APIConnectionError, + litellm.exceptions.APIError, + litellm.exceptions.RateLimitError, + litellm.exceptions.ServiceUnavailableError, + litellm.exceptions.Timeout, + litellm.exceptions.InternalServerError, + litellm.llms.anthropic.AnthropicError, ): return False