mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
More informative retry messages
This commit is contained in:
parent
9f7f6607c2
commit
1b10751585
1 changed files with 3 additions and 1 deletions
|
@ -622,7 +622,9 @@ class Coder:
|
||||||
requests.exceptions.ConnectionError,
|
requests.exceptions.ConnectionError,
|
||||||
),
|
),
|
||||||
max_tries=10,
|
max_tries=10,
|
||||||
on_backoff=lambda details: print(f"Retry in {details['wait']} seconds."),
|
on_backoff=lambda details: print(
|
||||||
|
f"{details.get('exception','Exception')}\nRetry in {details['wait']:.1f} seconds."
|
||||||
|
),
|
||||||
)
|
)
|
||||||
def send_with_retries(self, model, messages, functions):
|
def send_with_retries(self, model, messages, functions):
|
||||||
kwargs = dict(
|
kwargs = dict(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue