diff --git a/aider/commands.py b/aider/commands.py index 4d67ba92e..f48873049 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -81,7 +81,7 @@ class Commands: "Switch to a new LLM" model_name = args.strip() - model = models.Model(model_name) + model = models.Model(model_name, weak_model=self.coder.main_model.weak_model.name) models.sanity_check_models(self.io, model) raise SwitchCoder(main_model=model)