Only expand the repomap if we know it will fit into context window

This commit is contained in:
Paul Gauthier 2024-05-20 10:22:57 -07:00
parent 449cbf507f
commit 1effd73e80
2 changed files with 12 additions and 3 deletions

View file

@ -310,6 +310,7 @@ class Coder:
io,
self.gpt_prompts.repo_content_prefix,
self.verbose,
self.main_model.info.get("max_input_tokens"),
)
if max_chat_history_tokens is None: