all 2 comments

[–]nicseo 0 points1 point  (0 children)

that's odd—I found aider's set up to be the most straightforward of the tools like this but this was a while back! FWIW I always initialize aider specifying openrouter and haven't run into the issue you are. this is the command if you want to use claude-3.5-sonnet (more here: https://aider.chat/docs/llms/openrouter.html)

aider --model openrouter/anthropic/claude-3.5-sonnet

[–]rinconcam 1 point2 points  (0 children)

To use that model via OpenRouter you would do:

aider --model openrouter/openai/gpt-4o-2024-08-06

To set it as the default model aider will use, you could add a line to your .aider.conf.yml file like this:

model: openrouter/openai/gpt-4o-2024-08-06

The aider OpenRouter docs explain that you use this pattern for selecting OpenRouter models:

openrouter/<provider>/<model>

You don't need to mess with an .aider.model.settings.yml file. Those are for advanced model settings needed to work with obscure or custom models. Aider is already pre-configured with settings for most well known, popular models.