From 111d945a9adc429eaf41d157d7620467ec28bdb2 Mon Sep 17 00:00:00 2001 From: Chingfeng Li Date: Thu, 25 Sep 2025 14:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=8D=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=9A=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/utils/prompt_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/xiaozhi-server/core/utils/prompt_manager.py b/main/xiaozhi-server/core/utils/prompt_manager.py index 2b6bde15..4cbeefcb 100644 --- a/main/xiaozhi-server/core/utils/prompt_manager.py +++ b/main/xiaozhi-server/core/utils/prompt_manager.py @@ -184,7 +184,7 @@ class PromptManager: self.logger.bind(tag=TAG).error(f"更新上下文信息失败: {e}") def build_enhanced_prompt( - self, user_prompt: str, device_id: str, client_ip: str = None + self, user_prompt: str, device_id: str, client_ip: str = None, *args, **kwargs ) -> str: """构建增强的系统提示词""" if not self.base_prompt_template: @@ -225,6 +225,7 @@ class PromptManager: weather_info=weather_info, emojiList=EMOJI_List, device_id=device_id, + *args, **kwargs ) device_cache_key = f"device_prompt:{device_id}" self.cache_manager.set(