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