根据开发组建议重命名,移除多余的Prompt后缀

This commit is contained in:
UnCLAS-Prommer
2026-02-02 21:10:39 +08:00
parent b793a3d62b
commit 74b852dd8b
38 changed files with 27 additions and 27 deletions

View File

@@ -658,7 +658,7 @@ class ChatHistorySummarizer:
history_topics_block = "\n".join(f"- {t}" for t in existing_topics) if existing_topics else "(当前无历史话题)"
messages_block = "\n".join(numbered_lines)
prompt_template = prompt_manager.get_prompt("hippo_topic_analysis_prompt")
prompt_template = prompt_manager.get_prompt("hippo_topic_analysis")
prompt_template.add_context("history_topics_block", history_topics_block)
prompt_template.add_context("messages_block", messages_block)
prompt = await prompt_manager.render_prompt(prompt_template)
@@ -814,7 +814,7 @@ class ChatHistorySummarizer:
Returns:
tuple[bool, List[str], str]: (是否成功, 关键词列表, 概括)
"""
prompt_template = prompt_manager.get_prompt("hippo_topic_summary_prompt")
prompt_template = prompt_manager.get_prompt("hippo_topic_summary")
prompt_template.add_context("topic", topic)
prompt_template.add_context("original_text", original_text)
prompt = await prompt_manager.render_prompt(prompt_template)

View File

@@ -662,7 +662,7 @@ async def _react_agent_solve_question(
return None
# 执行最终评估
evaluation_prompt_template = prompt_manager.get_prompt("memory_retrieval_react_final_prompt")
evaluation_prompt_template = prompt_manager.get_prompt("memory_retrieval_react_final")
evaluation_prompt_template.add_context("bot_name", bot_name)
evaluation_prompt_template.add_context("time_now", time_now)
evaluation_prompt_template.add_context("chat_history", chat_history)