diff --git a/apps/chat.js b/apps/chat.js index 575b4ad..d7ef103 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -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()) { diff --git a/config/index.js b/config/index.js index b69ed20..8e7635b 100644 --- a/config/index.js +++ b/config/index.js @@ -60,9 +60,11 @@ export const Config = { '2captchaToken': '', // http或socks5代理 proxy: PROXY, - debug: false, + debug: true, // 各个地方的默认超时时间 defaultTimeoutMs: 120000, + // bing默认超时时间,bing太慢了有的时候 + bingTimeoutMs: 360000, // 浏览器默认超时,浏览器可能需要更高的超时时间 chromeTimeoutMS: 120000 }