mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Add debug dump calls for edit_format in Model initialization
This commit is contained in:
parent
76988b746f
commit
e56112739c
1 changed files with 6 additions and 1 deletions
|
@ -849,6 +849,7 @@ class Model(ModelSettings):
|
|||
if self.default_model_settings:
|
||||
self._copy_fields(self.default_model_settings)
|
||||
|
||||
dump(self.edit_format)
|
||||
# Look for exact model match
|
||||
exact_match = False
|
||||
for ms in MODEL_SETTINGS:
|
||||
|
@ -858,16 +859,20 @@ class Model(ModelSettings):
|
|||
exact_match = True
|
||||
break # Continue to apply overrides
|
||||
|
||||
dump(self.edit_format)
|
||||
model = model.lower()
|
||||
|
||||
# If no exact match, try generic settings
|
||||
if not exact_match:
|
||||
self.apply_generic_model_settings(model)
|
||||
|
||||
dump(self.edit_format)
|
||||
|
||||
# Apply override settings last if they exist
|
||||
if self.override_model_settings:
|
||||
self._copy_fields(self.override_model_settings)
|
||||
return
|
||||
|
||||
dump(self.edit_format)
|
||||
|
||||
def apply_generic_model_settings(self, model):
|
||||
if ("llama3" in model or "llama-3" in model) and "70b" in model:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue