From 85e7e79883922e84775e390981b7fd6036bea666 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 17 Apr 2023 17:17:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E5=A4=84=E7=90=86?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E8=87=AA=E5=8A=A8=E5=8C=96=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=AF=B9=E8=AF=9D=E5=B8=A6=E4=B8=8A?= =?UTF-8?q?=E6=9C=AC=E6=9C=88=E5=B7=B2=E5=8F=91=E9=80=81x=E6=9D=A1?= =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/chat.js b/apps/chat.js index 1770e98..f215374 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -623,6 +623,8 @@ export class chatgpt extends plugin { return false } const use = await redis.get('CHATGPT:USE') || 'api' + // 自动化插件本月已发送xx条消息更新太快,由于延迟和缓存问题导致不同客户端不一样,at文本和获取的card不一致。因此单独处理一下 + prompt = prompt.replace(/^|本月已发送\d+条消息/, '') await this.abstractChat(e, prompt, use) }