mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fixed benchmark
This commit is contained in:
parent
d92a93221c
commit
bf03f43b44
4 changed files with 18 additions and 11 deletions
|
@ -480,7 +480,6 @@ class Coder:
|
|||
except ExhaustedContextWindow:
|
||||
exhausted = True
|
||||
except openai.BadRequestError as err:
|
||||
dump(err)
|
||||
if "maximum context length" in str(err):
|
||||
exhausted = True
|
||||
else:
|
||||
|
@ -955,7 +954,6 @@ class Coder:
|
|||
|
||||
def check_model_availability(io, client, main_model):
|
||||
available_models = client.models.list()
|
||||
dump(available_models)
|
||||
model_ids = sorted(model.id for model in available_models)
|
||||
if main_model.name in model_ids:
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue