Add abort signal handling to requestGoogleCloudVertex function
This commit is contained in:
@@ -1584,7 +1584,8 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise
|
|||||||
const res = await globalFetch(url, {
|
const res = await globalFetch(url, {
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body,
|
body: body,
|
||||||
chatId: arg.chatId
|
chatId: arg.chatId,
|
||||||
|
abortSignal: arg.abortSignal
|
||||||
})
|
})
|
||||||
|
|
||||||
if(!res.ok){
|
if(!res.ok){
|
||||||
|
|||||||
Reference in New Issue
Block a user