fix: POST timeout

This commit is contained in:
Alpha Nerd 2026-05-11 21:00:33 +02:00
parent da83734c8f
commit ca8abdf8b9
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M

View file

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