fix: remove bun timeout

This commit is contained in:
Alpha Nerd 2026-05-12 09:21:21 +02:00
parent d02dcadc0d
commit 8f12edbfb8
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M

View file

@ -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()