mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Add retry support for litellm.InternalServerError
in the send_with_retries
function in aider/sendchat.py
.
This commit is contained in:
parent
cba53bfc22
commit
bcd802b6e9
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ def lazy_litellm_retry_decorator(func):
|
|||
giveup=should_giveup,
|
||||
max_time=60,
|
||||
on_backoff=lambda details: print(
|
||||
f"{details.get('exception','Exception')}\nRetry in {details['wait']:.1f} seconds."
|
||||
f"{details.get('exception', 'Exception')}\nRetry in {details['wait']:.1f} seconds."
|
||||
),
|
||||
)(func)
|
||||
return decorated_func(*args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue