mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Rationalized openai model attributes #458
This commit is contained in:
parent
873a388693
commit
35f812859e
5 changed files with 151 additions and 91 deletions
|
@ -72,12 +72,11 @@ class Coder:
|
|||
|
||||
if not skip_model_availabily_check and not main_model.always_available:
|
||||
if not check_model_availability(io, client, main_model):
|
||||
fallback_model = models.GPT35_1106
|
||||
if main_model != models.GPT4:
|
||||
io.tool_error(
|
||||
f"API key does not support {main_model.name}, falling back to"
|
||||
f" {fallback_model.name}"
|
||||
)
|
||||
fallback_model = models.GPT35_0125
|
||||
io.tool_error(
|
||||
f"API key does not support {main_model.name}, falling back to"
|
||||
f" {fallback_model.name}"
|
||||
)
|
||||
main_model = fallback_model
|
||||
|
||||
if edit_format is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue