Update the SwitchCoder class to accept any kwargs and pass them to the new coder, moving the model and edit_format into those kwargs.

This commit is contained in:
Your Name (aider) 2024-07-28 17:56:59 -03:00
parent f440479c48
commit c23da1d320
2 changed files with 4 additions and 6 deletions

View file

@ -589,10 +589,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
return
except SwitchCoder as switch:
coder = Coder.create(
main_model=switch.model,
edit_format=switch.edit_format,
io=io,
from_coder=coder,
**switch.kwargs
)
coder.show_announcements()