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,