From fa00fbb73f48575c60d4489967a3b1c7cf2aa6c4 Mon Sep 17 00:00:00 2001 From: Jonas Pacheco Date: Tue, 31 Mar 2026 15:24:00 -0300 Subject: [PATCH] =?UTF-8?q?fix(miroflow):=20aumenta=20timeout=20de=205=20p?= =?UTF-8?q?ara=2010=20minutos=20(DeepSeek=20R1=20=C3=A9=20lento)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/miroflow/engine-proxy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/miroflow/engine-proxy.ts b/server/miroflow/engine-proxy.ts index ede1821..3d295e2 100644 --- a/server/miroflow/engine-proxy.ts +++ b/server/miroflow/engine-proxy.ts @@ -5,7 +5,7 @@ import { createNode } from "../graph/service"; const MIROFLOW_HOST = process.env.MIROFLOW_HOST || "localhost"; const MIROFLOW_PORT = parseInt(process.env.MIROFLOW_PORT || "8006", 10); const MIROFLOW_URL = `http://${MIROFLOW_HOST}:${MIROFLOW_PORT}`; -const MIROFLOW_TIMEOUT = 300_000; // 5 minutos — deepseek-r1:14b pode levar 60-120s +const MIROFLOW_TIMEOUT = 600_000; // 10 minutos — deepseek-r1:14b pode levar 120-300s const MIROFLOW_HEALTH_TIMEOUT = 5_000; // 5 segundos para health check async function proxyToMiroFlow(path: string, method: string = "GET", body?: object): Promise { @@ -27,7 +27,7 @@ async function proxyToMiroFlow(path: string, method: string = "GET", body?: obje return await response.json(); } catch (err: any) { clearTimeout(timeout); - if (err.name === "AbortError") throw new Error("MiroFlow timeout (300s)"); + if (err.name === "AbortError") throw new Error("MiroFlow timeout (600s)"); throw err; } }