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 0773cddd5c
commit 8a68957f6e

View file

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