From 24ce709fb147c7d280ffee588e0e7e222faa6d95 Mon Sep 17 00:00:00 2001 From: Kirill Kirilenko Date: Wed, 31 Dec 2025 04:54:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B0=D1=83=D1=82=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=BE=D0=B2=20=D0=BA=20=D0=98?= =?UTF-8?q?=D0=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_agent.py b/ai_agent.py index b01a2d1..242461f 100644 --- a/ai_agent.py +++ b/ai_agent.py @@ -39,7 +39,7 @@ class AiMessage: class AiAgent: def __init__(self, api_token: str): - self.client = OpenRouter(api_key=api_token) + self.client = OpenRouter(api_key=api_token, timeout_ms=15000) self.chat_contexts: Dict[int, ChatContext] = {} async def get_reply(self, chat_id: int, chat_prompt: str,