updated proxy_server.py /models endpoint with the results of get_valid_models()

This commit is contained in:
canada4663 2023-10-14 20:54:47 -07:00
parent b6aa9cb82d
commit 4b52bd955c

View file

@ -485,7 +485,7 @@ def model_list():
object="list",
)
else:
all_models = litellm.model_list
all_models = litellm.utils.get_valid_models()
return dict(
data = [{"id": model, "object": "model", "created": 1677610602, "owned_by": "openai"} for model in all_models],
object="list",