From dfe4f4827c000866ce7b1c1e1c5feb92f136e5e5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 5 Aug 2024 17:48:47 -0300 Subject: [PATCH] feat: Increase the number of samples used to estimate token count in RepoMap --- aider/repomap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/repomap.py b/aider/repomap.py index 85858c7fe..945ef7210 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -67,7 +67,7 @@ class RepoMap: return len(text) / self.tokens_per_char sample_text = text.splitlines(keepends=True) - samples = 150 + samples = 300 if len(sample_text) < samples: return self.main_model.token_count(text)