Rationalized openai model attributes #458

This commit is contained in:
Paul Gauthier 2024-02-07 12:07:20 -08:00
parent 873a388693
commit 35f812859e
5 changed files with 151 additions and 91 deletions

View file

@ -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: