paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
18.93k stars 1.75k forks source link

Not selecting o1 from within .env file #1652

Open Yona544 opened 2 hours ago

Yona544 commented 2 hours ago

Issue

This is what I have in .env but Aider starts model anthropic/claude-3.5-sonnet The .env file is in the HOME directory

AIDER_MODEL=anthropic/claude-3.5-sonnet

AIDER_MODEL=openrouter/openai/o1-preview

Version and model info

Aider version: 0.57.1 Python version: 3.11.4 Platform: Windows-10-10.0.19045-SP0 Python implementation: CPython Virtual environment: No OS: Windows 10 (64bit) Git version: git version 2.45.2.windows.1

fry69 commented 2 hours ago

Thank you for filing this issue.

It may be that another configuration file or command line argument shadows your .env file. You can find out where aider gets its configuration with starting

aider --verbose

This will tell you what aider picks up from where.