From 15f34e2864a2c01652cce3041f3e838dd6b14c8c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 3 Jun 2023 17:47:05 -0700 Subject: [PATCH] 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. --- aider/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 068bc1129..6dfb6dd54 100644 --- a/aider/main.py +++ b/aider/main.py @@ -217,7 +217,7 @@ def main(args=None, input=None, output=None): auto_commits=args.auto_commits, dirty_commits=args.dirty_commits, dry_run=args.dry_run, - use_ctags=args.ctags, + map_tokens=args.map_tokens, verbose=args.verbose, openai_api_key=args.openai_api_key, )