Add abort signal handling to requestGoogleCloudVertex function

This commit is contained in:
Kwaroran
2024-11-27 08:04:33 +09:00
parent 68113cc383
commit 8366acc66c

View File

@@ -1584,7 +1584,8 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise
const res = await globalFetch(url, {
headers: headers,
body: body,
chatId: arg.chatId
chatId: arg.chatId,
abortSignal: arg.abortSignal
})
if(!res.ok){