mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: Improve default input handling and model selection logic
This commit is contained in:
parent
c8b9e2ff37
commit
1e1fef52c4
2 changed files with 8 additions and 4 deletions
|
@ -757,7 +757,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
("OPENAI_API_KEY", "gpt-4o"),
|
||||
("GEMINI_API_KEY", "flash"),
|
||||
]
|
||||
args.model = "gpt-4o-2024-08-06" # default
|
||||
|
||||
for env_key, model_name in model_key_pairs:
|
||||
if os.environ.get(env_key):
|
||||
args.model = model_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue