mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Ensure token count is calculated only when verbose mode is enabled
This commit is contained in:
parent
a864ab9888
commit
3ba6e95d22
1 changed files with 1 additions and 1 deletions
|
@ -95,8 +95,8 @@ class RepoMap:
|
|||
if not files_listing:
|
||||
return
|
||||
|
||||
num_tokens = self.token_count(files_listing)
|
||||
if self.verbose:
|
||||
num_tokens = self.token_count(files_listing)
|
||||
self.io.tool_output(f"Repo-map: {num_tokens / 1024:.1f} k-tokens")
|
||||
|
||||
if chat_files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue