diff --git a/services/ai_legal_engine.py b/services/ai_legal_engine.py index ee1b303..54a7a53 100644 --- a/services/ai_legal_engine.py +++ b/services/ai_legal_engine.py @@ -144,11 +144,11 @@ class AILegalEngine: env=env ) try: - stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=90.0) + stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=180.0) except asyncio.TimeoutError: try: proc.kill() except: pass - return {"success": False, "error": "Таймаут обращения к NotebookLM (более 90 сек)", "source": "notebooklm"} + return {"success": False, "error": "Таймаут обращения к NotebookLM (более 180 сек)", "source": "notebooklm"} out_str = stdout.decode('utf-8', errors='ignore').strip() err_str = stderr.decode('utf-8', errors='ignore').strip()