fix: timeouts
This commit is contained in:
parent
1330a1068f
commit
4cfc98de9d
1 changed files with 2 additions and 2 deletions
|
|
@ -301,7 +301,7 @@ class SecureCompletionClient:
|
|||
verify_ssl = self.router_url.startswith("https://")
|
||||
|
||||
async with httpx.AsyncClient(
|
||||
timeout=60.0,
|
||||
timeout=900.0,
|
||||
verify=verify_ssl, # Verify SSL/TLS certificates for HTTPS
|
||||
) as client:
|
||||
response = await client.get(url)
|
||||
|
|
@ -673,7 +673,7 @@ class SecureCompletionClient:
|
|||
await asyncio.sleep(delay)
|
||||
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=60.0) as client:
|
||||
async with httpx.AsyncClient(timeout=900.0) as client:
|
||||
response = await client.post(
|
||||
url,
|
||||
headers=headers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue