This commit is contained in:
Paul Gauthier 2025-01-27 17:01:44 -08:00
parent 91f1528149
commit f1e7d68415

View file

@ -41,9 +41,17 @@ to allow use of all models.
## Controlling provider selection
You can control which OpenRouter providers are used by creating a `.aider.model.settings.yml` file in your home directory or project root.
See [Advanced model settings](https://aider.chat/docs/config/adv-model-settings.html#model-settings)
for more details about model settings files. For example:
OpenRouter often has multiple providers serving each model.
You can control which OpenRouter providers are used for your requests in two ways:
1. By "ignoring" certain providers in your
[OpenRouter account settings]().
This disables those named providers across all the models that you access via OpenRouter.
2. By configuring "provider routing" in a `.aider.model.settings.yml` file.
Place that file in your home directory or the root if your git project, with
entries like this:
```yaml
- name: openrouter/anthropic/claude-3.5-sonnet
@ -61,4 +69,8 @@ for more details about model settings files. For example:
See [OpenRouter's provider routing docs](https://openrouter.ai/docs/provider-routing) for full details on these settings.
See [Advanced model settings](https://aider.chat/docs/config/adv-model-settings.html#model-settings)
for more details about model settings files.