Increase timeout for fetch in llamacpp
This commit is contained in:
parent
fdc8e07f86
commit
cffbe1a77b
@ -1389,7 +1389,7 @@ export default class llamacpp_extension extends AIEngine {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers,
|
headers,
|
||||||
body,
|
body,
|
||||||
signal: abortController?.signal,
|
signal: AbortSignal.any([AbortSignal.timeout(120000), abortController?.signal]),
|
||||||
})
|
})
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const errorData = await response.json().catch(() => null)
|
const errorData = await response.json().catch(() => null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user