mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
refactor: Update model switching to preserve weak model configuration
This commit is contained in:
parent
b61e527baa
commit
ddeb43783c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class Commands:
|
||||||
"Switch to a new LLM"
|
"Switch to a new LLM"
|
||||||
|
|
||||||
model_name = args.strip()
|
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)
|
models.sanity_check_models(self.io, model)
|
||||||
raise SwitchCoder(main_model=model)
|
raise SwitchCoder(main_model=model)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue