mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
wip
This commit is contained in:
parent
67ee800c55
commit
8c91e107e0
1 changed files with 12 additions and 1 deletions
|
@ -27,4 +27,15 @@ def get_model(name):
|
|||
if model.name == name:
|
||||
return model
|
||||
|
||||
tokens = 0
|
||||
|
||||
model = Model(name, tokens)
|
||||
|
||||
if name.startswith("gpt-4-"):
|
||||
GPT4_models.append(model)
|
||||
elif name.startswith("gpt-3.5-"):
|
||||
GPT35_models.append(model)
|
||||
else:
|
||||
raise ValueError(f"Unsupported model: {name}")
|
||||
|
||||
return model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue