From 8f12edbfb8f6eee0e72117771374e139b8431805 Mon Sep 17 00:00:00 2001 From: alpha nerd Date: Tue, 12 May 2026 09:21:21 +0200 Subject: [PATCH] fix: remove bun timeout --- index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.ts b/index.ts index 7c94d20..1997cd7 100644 --- a/index.ts +++ b/index.ts @@ -910,6 +910,9 @@ async function chat(text: string, files: PromptFiles = []) { headers: { "Content-Type": "application/json" }, body: JSON.stringify(body), signal: AbortSignal.timeout(30 * 60 * 1000), + // Bun-specific: disable internal ~5min timeout; rely on AbortSignal above. + // @ts-expect-error Bun fetch option not in standard typings + timeout: false, }) const rawText = await chatRes.text()