fix: POST timeout
This commit is contained in:
parent
da83734c8f
commit
ca8abdf8b9
1 changed files with 1 additions and 0 deletions
1
index.ts
1
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue