From 07f2ee9ad983e5ceaf1d2b9a9a1eff6092eea48e Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 5 Feb 2025 13:33:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20/reset=20=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/astrbot/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/astrbot/main.py b/packages/astrbot/main.py index 1a8945609..b96250b35 100644 --- a/packages/astrbot/main.py +++ b/packages/astrbot/main.py @@ -278,8 +278,9 @@ UID: {user_id} 此 ID 可用于设置管理员。/op 授权管理员, /deo message.set_result(MessageEventResult().message("未找到任何 LLM 提供商。请先配置。")) return + cid = await self.context.conversation_manager.get_curr_conversation_id(message.unified_msg_origin) await self.context.conversation_manager.update_conversation( - message.unified_msg_origin, message.session_id, [] + message.unified_msg_origin, cid, [] ) ret = "清除会话 LLM 聊天历史成功。"