mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
max_time not max_tries
This commit is contained in:
parent
1b35ca25c4
commit
3e4fca2675
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def should_giveup(e):
|
||||||
litellm.exceptions.ServiceUnavailableError,
|
litellm.exceptions.ServiceUnavailableError,
|
||||||
),
|
),
|
||||||
giveup=should_giveup,
|
giveup=should_giveup,
|
||||||
max_tries=3,
|
max_time=60,
|
||||||
on_backoff=lambda details: print(
|
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."
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue