feat: Increase the number of samples used to estimate token count in RepoMap

This commit is contained in:
Paul Gauthier 2024-08-05 17:48:47 -03:00 committed by Paul Gauthier (aider)
parent 168a1d070d
commit dfe4f4827c

View file

@ -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)