refactor: Optimize model settings YAML generation by skipping default values

This commit is contained in:
Paul Gauthier 2025-01-28 13:20:55 -08:00 committed by Paul Gauthier (aider)
parent 66025a06d5
commit b31cf90596

View file

@ -1413,6 +1413,7 @@ def get_model_settings_as_yaml():
import yaml
# omit the keys if the value is the same as the default value for that key. ai!
model_settings_list = []
for ms in MODEL_SETTINGS:
# Create dict with explicit field order