From d2957b6c1a98a73c8fff30ce4b3211a1069c83e9 Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Fri, 14 Apr 2023 12:01:35 +0200 Subject: [PATCH] fix: updating files fixing dependency installation --- src/executor_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executor_factory.py b/src/executor_factory.py index 549dc70..8e6a801 100644 --- a/src/executor_factory.py +++ b/src/executor_factory.py @@ -234,7 +234,7 @@ Please provide the complete file with the exact same syntax to wrap the code. returned_files_raw = conversation.query(user_query) for file_name, tag in FILE_AND_TAG_PAIRS: updated_file = self.extract_content_from_result(returned_files_raw, file_name) - if updated_file: + if updated_file and (not is_dependency_issue or file_name in ['requirements.txt', 'Dockerfile']): file_name_to_content[file_name] = updated_file for file_name, content in file_name_to_content.items():