根据开发组建议重命名,移除多余的Prompt后缀
This commit is contained in:
@@ -224,7 +224,7 @@ async def run_dream_agent_once(
|
||||
tool_registry = get_dream_tool_registry()
|
||||
tool_defs = tool_registry.get_tool_definitions()
|
||||
|
||||
head_prompt_template = prompt_manager.get_prompt("dream_react_head_prompt")
|
||||
head_prompt_template = prompt_manager.get_prompt("dream_react_head")
|
||||
head_prompt_template.add_context("bot_name", global_config.bot.nickname)
|
||||
head_prompt_template.add_context("time_now", time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
|
||||
head_prompt_template.add_context("chat_id", chat_id)
|
||||
|
||||
@@ -143,7 +143,7 @@ async def generate_dream_summary(
|
||||
dream_styles_text = "\n".join([f"{i + 1}. {style}" for i, style in enumerate(selected_styles)])
|
||||
|
||||
# 使用 Prompt 管理器格式化梦境生成 prompt
|
||||
dream_prompt_template = prompt_manager.get_prompt("dream_summary_prompt")
|
||||
dream_prompt_template = prompt_manager.get_prompt("dream_summary")
|
||||
dream_prompt_template.add_context("chat_id", chat_id)
|
||||
dream_prompt_template.add_context("total_iterations", str(total_iterations))
|
||||
dream_prompt_template.add_context("time_cost", str(time_cost))
|
||||
|
||||
Reference in New Issue
Block a user