From e234048bff16fbd2039045ec330e1771da1ed2da Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Fri, 24 Apr 2026 14:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=A7=81?= =?UTF-8?q?=E8=81=8A=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E6=9C=AA=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index fda18d2..1ac68dd 100755 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -101,7 +101,6 @@ class PrivateChatState: self.last_active = time.time() self.past_events = deque(maxlen=plugin_config.past_events_size) self.group_prompt: str | None = None - self.user_prompt: str | None = None self.output_reasoning_content = False @@ -364,7 +363,7 @@ async def process_messages(context_id: int, is_group: bool = True): # 构建系统提示,分成多行以满足行长限制 chat_type = "群聊" if is_group else "私聊" bot_names = "、".join(list(driver.config.nickname)) - default_prompt = (state.group_prompt if is_group else state.user_prompt) or plugin_config.default_prompt + default_prompt = (state.group_prompt) or plugin_config.default_prompt system_lines = [ f"我想要你帮我在{chat_type}中闲聊,大家一般叫你{bot_names}。",