mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
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
Reference in a new issue