mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Abstract the default model name so it applies to scripting #537
This commit is contained in:
parent
cf7dfa816e
commit
5c10944054
4 changed files with 5 additions and 2 deletions
|
@ -69,7 +69,7 @@ class Coder:
|
|||
from . import EditBlockCoder, UnifiedDiffCoder, WholeFileCoder
|
||||
|
||||
if not main_model:
|
||||
main_model = models.GPT4
|
||||
main_model = models.Model.create(models.DEFAULT_MODEL_NAME)
|
||||
|
||||
if not skip_model_availabily_check and not main_model.always_available:
|
||||
if not check_model_availability(io, client, main_model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue