When replaying cached actions, ignore input_text action with empty text (#1763)

This commit is contained in:
Shuchang Zheng
2025-02-12 20:09:32 +08:00
committed by GitHub
parent 38e22ff008
commit 866a16ec99

View File

@@ -213,6 +213,8 @@ async def personalize_action(
if action.action_type == ActionType.INPUT_TEXT:
action.text = answer
if not answer:
return []
elif action.action_type == ActionType.UPLOAD_FILE:
action.file_url = answer
elif action.action_type == ActionType.CLICK: