mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fix: Use repo map only when map_tokens is greater than 0
This commit is contained in:
parent
e20657096f
commit
fb0691914c
2 changed files with 2 additions and 2 deletions
|
@ -317,7 +317,7 @@ class Coder:
|
|||
use_repo_map = main_model.use_repo_map
|
||||
map_tokens = 1024
|
||||
else:
|
||||
use_repo_map = True
|
||||
use_repo_map = map_tokens > 0
|
||||
|
||||
max_inp_tokens = self.main_model.info.get("max_input_tokens") or 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue