AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix artifact bug
SwiftyOSf0087ab80ade
diff --git a/benchmark/agbenchmark/agent_api_interface.py b/benchmark/agbenchmark/agent_api_interface.pyindex f35ef81a95..9255884320 100644--- a/benchmark/agbenchmark/agent_api_interface.py+++ b/benchmark/agbenchmark/agent_api_interface.py@@ -65,9 +65,12 @@ async def copy_agent_artifacts_into_temp_folder(api_instance, task_id):# current absolute path of the directory of the filedirectory_location = TEMP_FOLDER_ABS_PATHif artifact.relative_path:- directory_location = directory_location / artifact.relative_path+ directory_location = os.path.dirname(directory_location / artifact.relative_path)++ os.mkdir(directory_location, recursive=True, exist_ok=True)- with open(directory_location / artifact.file_name, "wb") as f:+ file_path = directory_location / artifact.file_name+ with open(file_path, "wb") as f:content = await api_instance.download_agent_task_artifact(task_id=task_id, artifact_id=artifact.artifact_id)