From 74c151a973ea814845f603223f5918f4cfd605b3 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 21 Mar 2023 23:54:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bing=E8=87=AA=E5=AE=9A=E4=B9=89=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=BB=93=E6=9D=9F=E5=AF=B9=E8=AF=9D=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index a93c517..658082b 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -205,7 +205,7 @@ export class chatgpt extends plugin { if (use === 'api3') { await redis.del(`CHATGPT:QQ_CONVERSATION:${e.sender.user_id}`) await this.reply('已退出当前对话,该对话仍然保留。请@我进行聊天以开启新的对话', true) - } else if (use === 'bing' && Config.toneStyle === 'Sydney') { + } else if (use === 'bing' && (Config.toneStyle === 'Sydney' || Config.toneStyle === 'Custom')) { const conversation = { store: new KeyvFile({ filename: 'cache.json' }), namespace: 'Sydney' @@ -259,7 +259,7 @@ export class chatgpt extends plugin { if (use === 'api3') { await redis.del(`CHATGPT:QQ_CONVERSATION:${qq}`) await this.reply(`${atUser}已退出TA当前的对话,TA仍可以@我进行聊天以开启新的对话`, true) - } else if (use === 'bing' && Config.toneStyle === 'Sydney') { + } else if (use === 'bing' && (Config.toneStyle === 'Sydney' || Config.toneStyle === 'Custom')) { const conversation = { store: new KeyvFile({ filename: 'cache.json' }), namespace: 'Sydney'