Skip to content

Commit

Permalink
fix uppload file imaging issue (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Nov 21, 2024
1 parent df47d43 commit 9f2feda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion skyvern/webeye/actions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9f2feda

Please sign in to comment.