mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fixed bug in check_model_availability
This commit is contained in:
parent
1ceeecddca
commit
de0df5e7b1
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Coder:
|
|||
def check_model_availability(self, main_model):
|
||||
available_models = openai.Model.list()
|
||||
model_ids = [model.id for model in available_models["data"]]
|
||||
return main_model in model_ids
|
||||
return main_model.value in model_ids
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue