From 717236d235a5cc2ea6e3939e05611e337ca624f4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 1 Jul 2023 13:47:37 -0700 Subject: [PATCH] Make sure wholefile does not try and use the repo map --- aider/coders/base_coder.py | 2 +- aider/coders/wholefile_prompts.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index f6830cc50..6fbd5f486 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -163,7 +163,7 @@ class Coder: self.io.tool_output("Git repo: none") self.find_common_root() - if main_model.use_repo_map and self.repo: + if main_model.use_repo_map and self.repo and self.gpt_prompts.repo_content_prefix: rm_io = io if self.verbose else None self.repo_map = RepoMap( map_tokens, diff --git a/aider/coders/wholefile_prompts.py b/aider/coders/wholefile_prompts.py index 3e381c6af..68882f66f 100644 --- a/aider/coders/wholefile_prompts.py +++ b/aider/coders/wholefile_prompts.py @@ -37,3 +37,6 @@ Create a new file you MUST return a *file listing* which includes an appropriate files_no_full_files = "I am not sharing any files yet." redacted_edit_message = "No changes are needed." + + # this coder is not able to handle repo content + repo_content_prefix = None