update:根据数字人 emoji 开关动态渲染系统提示词

This commit is contained in:
3030332422
2026-05-26 11:43:18 +08:00
parent 7f73dae1bf
commit 7e63b7e852
2 changed files with 11 additions and 4 deletions
+4 -1
View File
@@ -534,7 +534,10 @@ class ConnectionHandler:
# 更新上下文信息
self.prompt_manager.update_context_info(self, self.client_ip)
enhanced_prompt = self.prompt_manager.build_enhanced_prompt(
self.config["prompt"], self.device_id, self.client_ip
self.config["prompt"],
self.device_id,
self.client_ip,
emoji_enabled=(self.features or {}).get("emoji", True),
)
if enhanced_prompt:
self.change_system_prompt(enhanced_prompt)