mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
updated proxy_server.py /models endpoint with the results of get_valid_models()
This commit is contained in:
parent
0773cddd5c
commit
8a68957f6e
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue