mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
copy
This commit is contained in:
parent
91f1528149
commit
f1e7d68415
1 changed files with 15 additions and 3 deletions
|
@ -41,9 +41,17 @@ to allow use of all models.
|
||||||
|
|
||||||
## Controlling provider selection
|
## 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.
|
OpenRouter often has multiple providers serving each model.
|
||||||
See [Advanced model settings](https://aider.chat/docs/config/adv-model-settings.html#model-settings)
|
You can control which OpenRouter providers are used for your requests in two ways:
|
||||||
for more details about model settings files. For example:
|
|
||||||
|
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
|
```yaml
|
||||||
- name: openrouter/anthropic/claude-3.5-sonnet
|
- 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 [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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue