From 5c7d85efd02a36fbc4a1e41a7d9864ff1576f1c9 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Fri, 2 Jun 2023 13:41:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=BF=85=E5=BA=94?= =?UTF-8?q?=E6=97=A0token=E7=9A=84=E6=8F=90=E7=A4=BA=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81token=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index 09572f6..cf03bf9 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -2112,7 +2112,11 @@ export class chatgpt extends plugin { async function getAvailableBingToken (conversation, throttled = []) { let allThrottled = false if (!await redis.get('CHATGPT:BING_TOKENS')) { - throw new Error('未绑定Bing Cookie,请使用#chatgpt设置必应token命令绑定Bing Cookie') + return { + bingToken: null, + allThrottled + } + // throw new Error('未绑定Bing Cookie,请使用#chatgpt设置必应token命令绑定Bing Cookie') } let bingToken = ''