From cae324f2509277f9827bf26891acc6e48aa3ddff Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 28 Mar 2023 16:35:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E6=9B=B4=E6=B8=85?= =?UTF-8?q?=E6=99=B0=E7=9A=84=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 3 --- utils/SydneyAIClient.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index 4f2735d..1ffebac 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -1052,9 +1052,6 @@ export class chatgpt extends plugin { break } catch (error) { const message = error?.message || error?.data?.message || error || '出错了' - if (message !== 'Timed out waiting for first message.') { - logger.error(error) - } retry-- errorMessage = message === 'Timed out waiting for response. Try enabling debug mode to see more information.' ? (reply ? `${reply}\n不行了,我的大脑过载了,处理不过来了!` : '必应的小脑瓜不好使了,不知道怎么回答!') : message } diff --git a/utils/SydneyAIClient.js b/utils/SydneyAIClient.js index c6ced84..2c71515 100644 --- a/utils/SydneyAIClient.js +++ b/utils/SydneyAIClient.js @@ -492,7 +492,7 @@ export default class SydneyAIClient { const firstTimeout = setTimeout(() => { if (!replySoFar) { this.cleanupWebSocketConnection(ws) - reject(new Error('Timed out waiting for first message.')) + reject(new Error('等待必应服务器响应超时。请尝试调整超时时间配置或减少设定量以避免此问题。')) } }, firstMessageTimeout)