mirror of https://github.com/Mai-with-u/MaiBot.git
Fix reply filtering when planner runs alone
parent
9191756412
commit
eae9448de9
|
|
@ -518,7 +518,8 @@ class HeartFChatting:
|
||||||
)
|
)
|
||||||
reply_result = None
|
reply_result = None
|
||||||
|
|
||||||
# 过滤掉planner返回的reply动作(如果存在)
|
# 当planner与提及回复并行时,reply_result已包含回复结果,需要避免重复执行reply动作
|
||||||
|
if reply_result:
|
||||||
action_to_use_info = [action for action in action_to_use_info if action.action_type != "reply"]
|
action_to_use_info = [action for action in action_to_use_info if action.action_type != "reply"]
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue