mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Simplify map_tokens assignment logic in main.py
This commit is contained in:
parent
d238ead451
commit
7ea69ae4b4
1 changed files with 4 additions and 1 deletions
|
@ -848,7 +848,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
)
|
||||
args.stream = False
|
||||
|
||||
map_tokens = args.map_tokens or main_model.get_repo_map_tokens()
|
||||
if args.map_tokens is None:
|
||||
map_tokens = main_model.get_repo_map_tokens()
|
||||
else:
|
||||
map_tokens = args.map_tokens
|
||||
|
||||
try:
|
||||
coder = Coder.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue