docs: Add documentation for aider/default and aider/override model settings

This commit is contained in:
Paul Gauthier (aider) 2024-11-19 10:03:26 -08:00
parent 2a80d9c555
commit 644da2f9e4

View file

@ -55,8 +55,28 @@ These model settings are pre-configured for most popular models.
But it can sometimes be helpful to override them or add settings for But it can sometimes be helpful to override them or add settings for
a model that aider doesn't know about. a model that aider doesn't know about.
To do that, ### Default and override settings
create a `.aider.model.settings.yml` file in one of these locations:
You can define default settings that apply to all models, and override settings that are applied last to all models.
To do this, add special model entries named `aider/default` and `aider/override` to your model settings file.
For example, to make all models use the "diff" edit format by default, but force the "whole" format for specific models:
```yaml
- name: aider/default
edit_format: diff
use_repo_map: true
- name: some-specific-model
edit_format: whole # Overrides the default
- name: aider/override
use_temperature: false # Applied last to all models
```
### Configuration file locations
Create a `.aider.model.settings.yml` file in one of these locations:
- Your home directory. - Your home directory.
- The root if your git repo. - The root if your git repo.