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:
|
finally:
|
||||||
await new_client.aclose()
|
await new_client.aclose()
|
||||||
except httpx.ConnectTimeout:
|
except httpx.TimeoutException:
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {}
|
data = {}
|
||||||
raise litellm.Timeout(
|
raise litellm.Timeout(
|
||||||
|
@ -220,7 +220,7 @@ class HTTPHandler:
|
||||||
)
|
)
|
||||||
response = self.client.send(req, stream=stream)
|
response = self.client.send(req, stream=stream)
|
||||||
return response
|
return response
|
||||||
except httpx.ConnectTimeout:
|
except httpx.TimeoutException:
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {}
|
data = {}
|
||||||
raise litellm.Timeout(
|
raise litellm.Timeout(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue