forked from phoenix/litellm-mirror
fix predibase timeout exceptions
This commit is contained in:
parent
19ab0614c4
commit
82e5ea059b
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ class AsyncHTTPHandler:
|
|||
)
|
||||
finally:
|
||||
await new_client.aclose()
|
||||
except httpx.ConnectTimeout:
|
||||
except httpx.TimeoutException:
|
||||
if data is None:
|
||||
data = {}
|
||||
raise litellm.Timeout(
|
||||
|
@ -220,7 +220,7 @@ class HTTPHandler:
|
|||
)
|
||||
response = self.client.send(req, stream=stream)
|
||||
return response
|
||||
except httpx.ConnectTimeout:
|
||||
except httpx.TimeoutException:
|
||||
if data is None:
|
||||
data = {}
|
||||
raise litellm.Timeout(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue