mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-31 12:54:33 +01:00
API: Remove obsolete list_dummy_models function
This commit is contained in:
parent
0b26650f47
commit
6af3598cfa
|
|
@ -18,19 +18,6 @@ def list_models():
|
|||
return {'model_names': get_available_models()[1:]}
|
||||
|
||||
|
||||
def list_dummy_models():
|
||||
result = {
|
||||
"object": "list",
|
||||
"data": []
|
||||
}
|
||||
|
||||
# these are expected by so much, so include some here as a dummy
|
||||
for model in ['gpt-3.5-turbo', 'text-embedding-ada-002']:
|
||||
result["data"].append(model_info_dict(model))
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def model_info_dict(model_name: str) -> dict:
|
||||
return {
|
||||
"id": model_name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue