fix: Ensure token count is calculated only when verbose mode is enabled

This commit is contained in:
Paul Gauthier 2024-08-05 16:37:34 -03:00 committed by Paul Gauthier (aider)
parent a864ab9888
commit 3ba6e95d22

View file

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