From ca8abdf8b9081732ee39f830dc81f35d65fd9444 Mon Sep 17 00:00:00 2001 From: alpha nerd Date: Mon, 11 May 2026 21:00:33 +0200 Subject: [PATCH] fix: POST timeout --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 82e99f2..915f1c2 100644 --- a/index.ts +++ b/index.ts @@ -905,6 +905,7 @@ async function chat(text: string, files: PromptFiles = []) { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body), + signal: AbortSignal.timeout(30 * 60 * 1000), }) const rawText = await chatRes.text()