diff --git a/aider/args.py b/aider/args.py index 94e814804..379034847 100644 --- a/aider/args.py +++ b/aider/args.py @@ -194,9 +194,7 @@ def get_parser(default_config_files, git_root): "--junior-model", metavar="JUNIOR_MODEL", default=None, - help=( - "Specify the model to use for junior tasks (default depends on --model)" - ), + help="Specify the model to use for junior tasks (default depends on --model)", ) group.add_argument( "--show-model-warnings", @@ -355,19 +353,28 @@ def get_parser(default_config_files, git_root): "--completion-menu-bg-color", metavar="COLOR", default="default", - help="Set the background color for the completion menu (default: terminal's default background color)", + help=( + "Set the background color for the completion menu (default: terminal's default" + " background color)" + ), ) group.add_argument( "--completion-menu-current-color", metavar="COLOR", default="default", - help="Set the color for the current item in the completion menu (default: terminal's default background color)", + help=( + "Set the color for the current item in the completion menu (default: terminal's default" + " background color)" + ), ) group.add_argument( "--completion-menu-current-bg-color", metavar="COLOR", default="default", - help="Set the background color for the current item in the completion menu (default: terminal's default text color)", + help=( + "Set the background color for the current item in the completion menu (default:" + " terminal's default text color)" + ), ) group.add_argument( "--code-theme", diff --git a/aider/main.py b/aider/main.py index a1d64b5b7..1fa07fc3c 100644 --- a/aider/main.py +++ b/aider/main.py @@ -533,7 +533,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F if os.environ.get("ANTHROPIC_API_KEY"): args.model = "claude-3-5-sonnet-20240620" - main_model = models.Model(args.model, weak_model=args.weak_model, junior_model=args.junior_model) + main_model = models.Model( + args.model, weak_model=args.weak_model, junior_model=args.junior_model + ) if args.verbose: io.tool_output("Model info:") diff --git a/aider/models.py b/aider/models.py index 47b3eb436..a1e2adebd 100644 --- a/aider/models.py +++ b/aider/models.py @@ -621,7 +621,7 @@ class Model(ModelSettings): self.weak_model_name = None else: self.get_weak_model(weak_model) - + if junior_model is False: self.junior_model_name = None else: