Merge pull request #611 from canada4663/main

proxy /models endpoint with the results of get_valid_models()
This commit is contained in:
Krish Dholakia 2023-10-14 22:34:51 -07:00 committed by GitHub
commit abd12e1e9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -248,7 +248,6 @@ provider_list: List = [
"bedrock",
"vllm",
"nlp_cloud",
"bedrock",
"petals",
"oobabooga",
"ollama",

View file

@ -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",