mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Do exp backoff for litellm.exceptions.ServiceUnavailableError #580
This commit is contained in:
parent
7b14d77e9e
commit
3469e04eb8
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ def giveup_on_recitiation(ex):
|
|||
APIConnectionError,
|
||||
httpx.ConnectError,
|
||||
litellm.exceptions.BadRequestError,
|
||||
litellm.exceptions.ServiceUnavailableError,
|
||||
),
|
||||
giveup=giveup_on_recitiation,
|
||||
max_tries=10,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue