Skip to content

Your lightweight open-source personal agent.

Increase timeout for chat completion calls

Kunal Karmakar7e4594e08dc7
diff --git a/nanobot/providers/azure_openai_provider.py b/nanobot/providers/azure_openai_provider.py
index fc8e9502e..6da37e790 100644
--- a/nanobot/providers/azure_openai_provider.py
+++ b/nanobot/providers/azure_openai_provider.py
@@ -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(