From 9f2fedae4e6695e46b1c96cca8609959d65f718e Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Thu, 21 Nov 2024 22:28:32 +0800 Subject: [PATCH] fix uppload file imaging issue (#1234) --- skyvern/webeye/actions/handler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 800c28f1..2ca4b9c9 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -620,7 +620,12 @@ async def handle_upload_file_action( # ************************************************************************************************************** # file_url = await get_actual_value_of_parameter_if_secret(task, action.file_url) decoded_url = urllib.parse.unquote(file_url) - if file_url not in str(task.navigation_payload) and decoded_url not in str(task.navigation_payload): + if ( + file_url not in str(task.navigation_payload) + and file_url not in str(task.navigation_goal) + and decoded_url not in str(task.navigation_payload) + and decoded_url not in str(task.navigation_goal) + ): LOG.warning( "LLM might be imagining the file url, which is not in navigation payload", action=action,