mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +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:
|
if self.default_model_settings:
|
||||||
self._copy_fields(self.default_model_settings)
|
self._copy_fields(self.default_model_settings)
|
||||||
|
|
||||||
|
dump(self.edit_format)
|
||||||
# Look for exact model match
|
# Look for exact model match
|
||||||
exact_match = False
|
exact_match = False
|
||||||
for ms in MODEL_SETTINGS:
|
for ms in MODEL_SETTINGS:
|
||||||
|
@ -858,16 +859,20 @@ class Model(ModelSettings):
|
||||||
exact_match = True
|
exact_match = True
|
||||||
break # Continue to apply overrides
|
break # Continue to apply overrides
|
||||||
|
|
||||||
|
dump(self.edit_format)
|
||||||
model = model.lower()
|
model = model.lower()
|
||||||
|
|
||||||
# If no exact match, try generic settings
|
# If no exact match, try generic settings
|
||||||
if not exact_match:
|
if not exact_match:
|
||||||
self.apply_generic_model_settings(model)
|
self.apply_generic_model_settings(model)
|
||||||
|
|
||||||
|
dump(self.edit_format)
|
||||||
|
|
||||||
# Apply override settings last if they exist
|
# Apply override settings last if they exist
|
||||||
if self.override_model_settings:
|
if self.override_model_settings:
|
||||||
self._copy_fields(self.override_model_settings)
|
self._copy_fields(self.override_model_settings)
|
||||||
return
|
|
||||||
|
dump(self.edit_format)
|
||||||
|
|
||||||
def apply_generic_model_settings(self, model):
|
def apply_generic_model_settings(self, model):
|
||||||
if ("llama3" in model or "llama-3" in model) and "70b" in 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