From 3e4fca26750e049a400302b7937db5fac26b3ca7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 4 May 2024 17:48:01 -0700 Subject: [PATCH] max_time not max_tries --- aider/sendchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/sendchat.py b/aider/sendchat.py index 3bb74a1a0..bd2ab9df6 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -36,7 +36,7 @@ def should_giveup(e): litellm.exceptions.ServiceUnavailableError, ), giveup=should_giveup, - max_tries=3, + max_time=60, on_backoff=lambda details: print( f"{details.get('exception','Exception')}\nRetry in {details['wait']:.1f} seconds." ),