mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
do not summarize when switching to code or ask mode
This commit is contained in:
parent
9d84c3936c
commit
1a3466e413
1 changed files with 12 additions and 3 deletions
|
@ -87,10 +87,19 @@ class Commands:
|
|||
|
||||
return
|
||||
|
||||
if ef == "code":
|
||||
ef = self.coder.main_model.edit_format
|
||||
summarize_from_coder = True
|
||||
edit_format = ef
|
||||
|
||||
raise SwitchCoder(edit_format=ef)
|
||||
if ef == "code":
|
||||
edit_format = self.coder.main_model.edit_format
|
||||
summarize_from_coder = False
|
||||
elif ef == "ask":
|
||||
summarize_from_coder = False
|
||||
|
||||
raise SwitchCoder(
|
||||
edit_format=edit_format,
|
||||
summarize_from_coder=summarize_from_coder,
|
||||
)
|
||||
|
||||
def completions_model(self):
|
||||
models = litellm.model_cost.keys()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue