From 392064ceeb5d621f39c8210e5ca27bb64a730cf2 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 20 Mar 2023 00:56:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20chatglm=20=E7=BB=93=E6=9D=9F=E5=AF=B9?= =?UTF-8?q?=E8=AF=9Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index bf7101a..578c628 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -207,8 +207,8 @@ export class chatgpt extends plugin { await this.reply('依赖keyv未安装,请执行pnpm install keyv', true) } const conversationsCache = new Keyv(conversation) - logger.info(`ChatGLMUser_${e.sender.user_id}`, await conversationsCache.get(`SydneyUser_${e.sender.user_id}`)) - await conversationsCache.delete(`SydneyUser_${e.sender.user_id}`) + logger.info(`ChatGLMUser_${e.sender.user_id}`, await conversationsCache.get(`ChatGLMUser_${e.sender.user_id}`)) + await conversationsCache.delete(`ChatGLMUser_${e.sender.user_id}`) await this.reply('已退出当前对话,该对话仍然保留。请@我进行聊天以开启新的对话', true) } else { let c = await redis.get(`CHATGPT:CONVERSATIONS:${e.sender.user_id}`) @@ -252,7 +252,7 @@ export class chatgpt extends plugin { await this.reply('依赖keyv未安装,请执行pnpm install keyv', true) } const conversationsCache = new Keyv(conversation) - logger.info(`SydneyUser_${e.sender.user_id}`, await conversationsCache.get(`SydneyUser_${e.sender.user_id}`)) + logger.info(`ChatGLMUser_${e.sender.user_id}`, await conversationsCache.get(`ChatGLMUser_${e.sender.user_id}`)) await conversationsCache.delete(`ChatGLMUser_${qq}`) await this.reply('已退出当前对话,该对话仍然保留。请@我进行聊天以开启新的对话', true) } else {