mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
style: simplify model name conditional in models.py
Co-authored-by: aider (gpt-5.4) <aider@aider.chat>
This commit is contained in:
@@ -514,11 +514,7 @@ class Model(ModelSettings):
|
||||
self.reminder = "sys"
|
||||
return # <--
|
||||
|
||||
if (
|
||||
"sonnet-4-" in model
|
||||
or "opus-4-" in model
|
||||
or "haiku-4-" in model
|
||||
):
|
||||
if "sonnet-4-" in model or "opus-4-" in model or "haiku-4-" in model:
|
||||
self.edit_format = "diff"
|
||||
self.use_repo_map = True
|
||||
self.examples_as_sys_msg = False
|
||||
|
||||
Reference in New Issue
Block a user