mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +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,
|
APIConnectionError,
|
||||||
httpx.ConnectError,
|
httpx.ConnectError,
|
||||||
litellm.exceptions.BadRequestError,
|
litellm.exceptions.BadRequestError,
|
||||||
|
litellm.exceptions.ServiceUnavailableError,
|
||||||
),
|
),
|
||||||
giveup=giveup_on_recitiation,
|
giveup=giveup_on_recitiation,
|
||||||
max_tries=10,
|
max_tries=10,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue