mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
aider: Changed use_ctags
to map_tokens
parameter in main.py
to pass to Coder
class.
# Context: USER: pass it to Coder as map_tokens instead of `use_ctags` ASSISTANT: I will modify the `aider/main.py` file to pass `map_tokens` to the `Coder` class instead of `use_ctags`. ```python aider/main.py <<<<<<< ORIGINAL coder = Coder( io, main_model=args.model, fnames=args.files, pretty=args.pretty, show_diffs=args.show_diffs, auto_commits=args.auto_commits, dirty_commits=args.dirty_commits, dry_run=args.dry_run, use_ctags=args.ctags, verbose=args.verbose, openai_api_key=args.openai_api_key, ) ======= coder = Coder( io, main_model=args.model, fnames=args.files, pretty=args.pretty, show_diffs=args.show_diffs, auto_commits=args.auto_commits, dirty_commits=args.dirty_commits, dry_run=args.dry_run, map_tokens=args.map_tokens, verbose=args.verbose, openai_api_key=args.openai_api_key, ) >>>>>>> UPDATED ``` Now, the `map_tokens` value is passed to the `Coder` class instead of `use_ctags`. Please make sure to update the `Coder` class in `aider/coder.py` to accept and use the `map_tokens` parameter.
This commit is contained in:
parent
dcdad393c8
commit
15f34e2864
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ def main(args=None, input=None, output=None):
|
||||||
auto_commits=args.auto_commits,
|
auto_commits=args.auto_commits,
|
||||||
dirty_commits=args.dirty_commits,
|
dirty_commits=args.dirty_commits,
|
||||||
dry_run=args.dry_run,
|
dry_run=args.dry_run,
|
||||||
use_ctags=args.ctags,
|
map_tokens=args.map_tokens,
|
||||||
verbose=args.verbose,
|
verbose=args.verbose,
|
||||||
openai_api_key=args.openai_api_key,
|
openai_api_key=args.openai_api_key,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue