mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-13 08:05:01 +00:00
Merge branch 'main' into gitignore
This commit is contained in:
commit
e9806bb84f
5 changed files with 93 additions and 10 deletions
|
@ -622,7 +622,9 @@ class Coder:
|
|||
requests.exceptions.ConnectionError,
|
||||
),
|
||||
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):
|
||||
kwargs = dict(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue