From be74259df6b0cd0150351787a4b9e3fdc22c8ffd Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 25 Oct 2024 07:31:05 -0700 Subject: [PATCH] fix: add missing AnthropicError exception to retry list --- aider/sendchat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/sendchat.py b/aider/sendchat.py index 2b9615c12..daa0f22a1 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -29,7 +29,10 @@ def retry_exceptions(): 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, )