mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Refactor model_ids to be sorted in check_model_availability function.
This commit is contained in:
parent
3d65217bed
commit
e771adbff5
1 changed files with 1 additions and 1 deletions
|
@ -939,7 +939,7 @@ class Coder:
|
|||
|
||||
def check_model_availability(io, main_model):
|
||||
available_models = openai.Model.list()
|
||||
model_ids = [model.id for model in available_models["data"]]
|
||||
model_ids = sorted(model.id for model in available_models["data"])
|
||||
if main_model.name in model_ids:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue