From cba53bfc225ea04a5acc52887f64441659200675 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 30 Jul 2024 12:23:33 -0300 Subject: [PATCH] Add retry support for litellm.InternalServerError --- aider/sendchat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/sendchat.py b/aider/sendchat.py index 1123fe78c..b5f05e578 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -42,6 +42,7 @@ def lazy_litellm_retry_decorator(func): litellm.exceptions.RateLimitError, litellm.exceptions.ServiceUnavailableError, litellm.exceptions.Timeout, + litellm.exceptions.InternalServerError, litellm.llms.anthropic.AnthropicError, ), giveup=should_giveup,