From ddeb43783c047d919588eb81c5230cdf23dc2c30 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 6 Feb 2025 13:43:58 -0800 Subject: [PATCH] refactor: Update model switching to preserve weak model configuration --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)