fix(unified_manager): 更新记忆检索评估提示,增强用户意图判断逻辑

This commit is contained in:
Windpicker-owo
2025-12-16 22:57:56 +08:00
parent 526ef4c039
commit 04ce338847
2 changed files with 26 additions and 26 deletions

View File

@@ -979,7 +979,7 @@ class LLMRequest:
def _resolve_system_prompt(self, model_set: TaskConfig) -> str | None:
"""确定是否需要附加统一的system prompt."""
try:
if model_config and model_set is model_config.model_task_config.replyer:
if model_config and (model_set is model_config.model_task_config.replyer or model_set is model_config.model_task_config.replyer_private):
return SYSTEM_PROMPT
except AttributeError:
logger.debug("模型配置缺少replyer定义无法注入系统提示词")