mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
Merge pull request #611 from canada4663/main
proxy /models endpoint with the results of get_valid_models()
This commit is contained in:
commit
abd12e1e9b
2 changed files with 1 additions and 2 deletions
|
@ -248,7 +248,6 @@ provider_list: List = [
|
|||
"bedrock",
|
||||
"vllm",
|
||||
"nlp_cloud",
|
||||
"bedrock",
|
||||
"petals",
|
||||
"oobabooga",
|
||||
"ollama",
|
||||
|
|
|
@ -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