From b6ec327b49ab2eecc0a3e1d057ecbc8037605fb9 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 8 Feb 2025 22:04:36 +0800 Subject: [PATCH] =?UTF-8?q?perf=EF=BC=9A=E5=AE=8C=E5=96=84=E4=B8=BB?= =?UTF-8?q?=E5=8A=A8=E4=BC=9A=E8=AF=9D?= 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 a5a812fec..6732942f7 100644 --- a/packages/astrbot/main.py +++ b/packages/astrbot/main.py @@ -6,6 +6,7 @@ import astrbot.api.star as star import astrbot.api.event.filter as filter from astrbot.api.event import AstrMessageEvent, MessageEventResult from astrbot.api import sp +from astrbot.api.platform import MessageType from astrbot.api.provider import Personality, ProviderRequest, LLMResponse from astrbot.core.utils.io import download_dashboard, get_dashboard_version from astrbot.core.star.star_handler import star_handlers_registry, StarHandlerMetadata @@ -632,7 +633,7 @@ UID: {user_id} 此 ID 可用于设置管理员。/op 授权管理员, /deo session_curr_cid = await self.context.conversation_manager.get_curr_conversation_id(event.unified_msg_origin) if not session_curr_cid: - logger.error("当前未处于对话状态,无法主动回复,请使用 /switch 切换或者 /new 创建。") + logger.error("当前未处于对话状态,无法主动回复,请确保 平台设置->会话隔离(unique_session) 未开启,并使用 /switch 切换或者 /new 创建一个会话。") return conv = await self.context.conversation_manager.get_conversation(