mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-04 10:22:33 +00:00
Increase timeout for chat completion calls
This commit is contained in:
parent
13236ccd38
commit
7e4594e08d
@ -120,7 +120,7 @@ class AzureOpenAIProvider(LLMProvider):
|
||||
)
|
||||
|
||||
try:
|
||||
async with httpx.AsyncClient() as client:
|
||||
async with httpx.AsyncClient(timeout=60.0) as client:
|
||||
response = await client.post(url, headers=headers, json=payload)
|
||||
if response.status_code != 200:
|
||||
return LLMResponse(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user