mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
dynamically get pricing and context length for openrouter models
This commit is contained in:
parent
041f3a4a38
commit
a0d6efc13c
2 changed files with 11 additions and 2 deletions
|
@ -901,6 +901,5 @@ class Coder:
|
|||
|
||||
def check_model_availability(main_model):
|
||||
available_models = openai.Model.list()
|
||||
print(available_models)
|
||||
model_ids = [model.id for model in available_models["data"]]
|
||||
return main_model.name in model_ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue