forked from phoenix/litellm-mirror
updated proxy_server.py /models endpoint with the results of get_valid_models()
This commit is contained in:
parent
b6aa9cb82d
commit
4b52bd955c
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue