mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-20 04:23:56 +00:00
fix predibase timeout exceptions
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user