mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
always retry httpx errors
This commit is contained in:
parent
6c45b58698
commit
4841f318c1
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,13 @@ def should_giveup(e):
|
|||
if not hasattr(e, "status_code"):
|
||||
return False
|
||||
|
||||
if type(e) in (
|
||||
httpx.ConnectError,
|
||||
httpx.RemoteProtocolError,
|
||||
httpx.ReadTimeout,
|
||||
):
|
||||
return False
|
||||
|
||||
return not litellm._should_retry(e.status_code)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue