mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
feat: Add documentation for controlling OpenRouter provider selection in model settings
This commit is contained in:
parent
674dcba53c
commit
60b8bccd37
1 changed files with 19 additions and 0 deletions
|
@ -39,5 +39,24 @@ If you get errors, check your
|
||||||
Be sure to "enable providers that may train on inputs"
|
Be sure to "enable providers that may train on inputs"
|
||||||
to allow use of all models.
|
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. For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: openrouter/anthropic/claude-3.5-sonnet
|
||||||
|
extra_params:
|
||||||
|
provider:
|
||||||
|
# Only use these providers, in this order
|
||||||
|
order: ["Anthropic", "Together"]
|
||||||
|
# Don't fall back to other providers
|
||||||
|
allow_fallbacks: false
|
||||||
|
# Skip providers that may train on inputs
|
||||||
|
data_collection: "deny"
|
||||||
|
# Only use providers supporting all parameters
|
||||||
|
require_parameters: true
|
||||||
|
```
|
||||||
|
|
||||||
|
See [OpenRouter's provider routing docs](https://openrouter.ai/docs/provider-routing) for full details on these settings.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue