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://")
|
verify_ssl = self.router_url.startswith("https://")
|
||||||
|
|
||||||
async with httpx.AsyncClient(
|
async with httpx.AsyncClient(
|
||||||
timeout=60.0,
|
timeout=900.0,
|
||||||
verify=verify_ssl, # Verify SSL/TLS certificates for HTTPS
|
verify=verify_ssl, # Verify SSL/TLS certificates for HTTPS
|
||||||
) as client:
|
) as client:
|
||||||
response = await client.get(url)
|
response = await client.get(url)
|
||||||
|
|
@ -673,7 +673,7 @@ class SecureCompletionClient:
|
||||||
await asyncio.sleep(delay)
|
await asyncio.sleep(delay)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient(timeout=60.0) as client:
|
async with httpx.AsyncClient(timeout=900.0) as client:
|
||||||
response = await client.post(
|
response = await client.post(
|
||||||
url,
|
url,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue