mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: add bing timeout
This commit is contained in:
parent
7719b27392
commit
236ec07f38
2 changed files with 4 additions and 2 deletions
|
|
@ -415,7 +415,7 @@ export class chatgpt extends plugin {
|
|||
return resolve(bingResponse)
|
||||
})
|
||||
response = await pTimeout(responseP, {
|
||||
milliseconds: Config.defaultTimeoutMs,
|
||||
milliseconds: Config.bingTimeoutMs,
|
||||
message: 'Bing timed out waiting for response'
|
||||
})
|
||||
if (response.details.adaptiveCards?.[0]?.body?.[0]?.text?.trim()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue