私聊拥有单独的planner配置

This commit is contained in:
SengokuCola
2025-09-17 20:17:23 +08:00
parent 6ea3a37dd9
commit ddf4fb1bce
6 changed files with 14 additions and 47 deletions

View File

@@ -502,12 +502,6 @@ class BrainChatting:
)
return {"action_type": "no_action", "success": True, "reply_text": "", "command": ""}
elif action_planner_info.action_type == "wait_time":
action_planner_info.action_data = action_planner_info.action_data or {}
logger.info(f"{self.log_prefix} 等待{action_planner_info.action_data['time']}秒后回复")
await asyncio.sleep(action_planner_info.action_data["time"])
return {"action_type": "wait_time", "success": True, "reply_text": "", "command": ""}
elif action_planner_info.action_type == "reply":
try:
success, llm_response = await generator_api.generate_reply(

View File

@@ -59,7 +59,7 @@ reply
no_reply
动作描述:
保持沉默,等待对方发言
等待,保持沉默,等待对方发言
{{
"action": "no_reply",
}}
@@ -332,7 +332,7 @@ class BrainPlanner:
moderation_prompt=moderation_prompt_block,
name_block=name_block,
interest=interest,
plan_style=global_config.personality.plan_style,
plan_style=global_config.personality.private_plan_style,
)
return prompt, message_id_list