把刷屏的不注释掉,塞进debug里
This commit is contained in:
@@ -311,10 +311,10 @@ class ActionPlanner:
|
||||
# --- 选择 Prompt ---
|
||||
if last_successful_reply_action in ['direct_reply', 'send_new_message']:
|
||||
prompt_template = PROMPT_FOLLOW_UP
|
||||
logger.info("使用 PROMPT_FOLLOW_UP (追问决策)")
|
||||
logger.debug(f"使用 PROMPT_FOLLOW_UP (追问决策)")
|
||||
else:
|
||||
prompt_template = PROMPT_INITIAL_REPLY
|
||||
logger.info("使用 PROMPT_INITIAL_REPLY (首次/非连续回复决策)")
|
||||
logger.debug("使用 PROMPT_INITIAL_REPLY (首次/非连续回复决策)")
|
||||
|
||||
# --- 格式化最终的 Prompt ---
|
||||
prompt = prompt_template.format(
|
||||
|
||||
@@ -46,7 +46,7 @@ class Waiter:
|
||||
return True # 返回 True 表示超时
|
||||
|
||||
await asyncio.sleep(5) # 每 5 秒检查一次
|
||||
# logger.info("等待中...") # 可以考虑把这个频繁日志注释掉,只在超时或收到消息时输出
|
||||
logger.debug("等待中...") # 可以考虑把这个频繁日志注释掉,只在超时或收到消息时输出
|
||||
|
||||
async def wait_listening(self, conversation_info: ConversationInfo) -> bool:
|
||||
"""倾听用户发言或超时"""
|
||||
@@ -73,4 +73,4 @@ class Waiter:
|
||||
return True # 返回 True 表示超时
|
||||
|
||||
await asyncio.sleep(5) # 每 5 秒检查一次
|
||||
logger.info("倾听等待中...") # 同上,可以考虑注释掉
|
||||
logger.debug("倾听等待中...") # 同上,可以考虑注释掉
|
||||
|
||||
Reference in New Issue
Block a user