mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 21:24:59 +00:00
just print
This commit is contained in:
parent
091bcaa1a2
commit
0abbf43466
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import backoff
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
import backoff
|
||||||
import git
|
import git
|
||||||
import openai
|
import openai
|
||||||
import requests
|
import requests
|
||||||
|
@ -395,7 +395,7 @@ class Coder:
|
||||||
backoff.expo,
|
backoff.expo,
|
||||||
(RateLimitError, requests.exceptions.ConnectionError),
|
(RateLimitError, requests.exceptions.ConnectionError),
|
||||||
max_tries=5,
|
max_tries=5,
|
||||||
on_backoff=lambda details: self.io.tool_error(f"Retry in {details['wait']} seconds."),
|
on_backoff=lambda details: print(f"Retry in {details['wait']} seconds."),
|
||||||
)
|
)
|
||||||
def send_with_retries(self, model, messages):
|
def send_with_retries(self, model, messages):
|
||||||
return openai.ChatCompletion.create(
|
return openai.ChatCompletion.create(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue