From 95b08b20235c7fcfc27745dedb6de6ac57cc883f Mon Sep 17 00:00:00 2001 From: Raila23 <3271405327@qq.com> Date: Thu, 10 Apr 2025 09:18:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BD=BF=20begin=5Fdialogs=20,=E9=A2=84?= =?UTF-8?q?=E8=AE=BE=E5=AF=B9=E8=AF=9D=EF=BC=8C=E4=B8=8D=E4=BC=9A=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E6=8F=92=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/astrbot/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astrbot/main.py b/packages/astrbot/main.py index 013dcb0f7..410151510 100644 --- a/packages/astrbot/main.py +++ b/packages/astrbot/main.py @@ -1232,7 +1232,7 @@ UID: {user_id} 此 ID 可用于设置管理员。 if mood_dialogs := persona["_mood_imitation_dialogs_processed"]: req.system_prompt += "\nHere are few shots of dialogs, you need to imitate the tone of 'B' in the following dialogs to respond:\n" req.system_prompt += mood_dialogs - if begin_dialogs := persona["_begin_dialogs_processed"]: + if (begin_dialogs := persona["_begin_dialogs_processed"]) and not req.contexts: req.contexts[:0] = begin_dialogs if quote and quote.message_str: