8x repomap when finding files; fix max_input_tokens

This commit is contained in:
Paul Gauthier 2024-06-26 04:14:51 +00:00
parent 5e25e3550e
commit c020d94d5f
2 changed files with 5 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class RepoMap:
max_map_tokens = self.max_map_tokens
# With no files in the chat, give a bigger view of the entire repo
MUL = 16
MUL = 8
padding = 4096
if max_map_tokens and self.max_context_window:
target = min(max_map_tokens * MUL, self.max_context_window - padding)