fix uppload file imaging issue (#1234)

This commit is contained in:
LawyZheng
2024-11-21 22:28:32 +08:00
committed by GitHub
parent df47d43176
commit 9f2fedae4e

View File

@@ -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,