mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Assume a default main_model
This commit is contained in:
parent
25312e6e2f
commit
1b41bbd0d9
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ class Coder:
|
||||||
openai.api_key = openai_api_key
|
openai.api_key = openai_api_key
|
||||||
openai.api_base = openai_api_base
|
openai.api_base = openai_api_base
|
||||||
|
|
||||||
|
if not main_model:
|
||||||
|
main_model = models.GPT35_16k
|
||||||
|
|
||||||
if not main_model.always_available:
|
if not main_model.always_available:
|
||||||
if not check_model_availability(main_model):
|
if not check_model_availability(main_model):
|
||||||
if main_model != models.GPT4:
|
if main_model != models.GPT4:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue