Make it possible to specify the AI in config command.
This commit is contained in:
@@ -62,7 +62,12 @@ class OpenAI(AI):
|
||||
"""
|
||||
Return all models supported by this AI.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
ret = []
|
||||
for engine in sorted(openai.Engine.list()['data'], key=lambda x: x['id']):
|
||||
if engine['ready']:
|
||||
ret.append(engine['id'])
|
||||
ret.sort()
|
||||
return ret
|
||||
|
||||
def print_models(self) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user