mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
feat: Increase the number of samples used to estimate token count in RepoMap
This commit is contained in:
parent
168a1d070d
commit
dfe4f4827c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue