mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 02:24:18 +00:00
Merge pull request #611 from canada4663/main
proxy /models endpoint with the results of get_valid_models()
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user