API: Remove obsolete list_dummy_models function

This commit is contained in:
oobabooga 2025-06-18 16:15:29 -07:00
parent 0b26650f47
commit 6af3598cfa

View file

@ -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,