mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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",
|
"bedrock",
|
||||||
"vllm",
|
"vllm",
|
||||||
"nlp_cloud",
|
"nlp_cloud",
|
||||||
"bedrock",
|
|
||||||
"petals",
|
"petals",
|
||||||
"oobabooga",
|
"oobabooga",
|
||||||
"ollama",
|
"ollama",
|
||||||
|
|
|
@ -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