From 4b52bd955c7aa6639e4228d447d7dc622903c9d8 Mon Sep 17 00:00:00 2001 From: canada4663 <3118399+canada4663@users.noreply.github.com> Date: Sat, 14 Oct 2023 20:54:47 -0700 Subject: [PATCH 1/2] updated proxy_server.py /models endpoint with the results of get_valid_models() --- litellm/proxy/proxy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 5db6022cf1..2dcb1d7e52 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -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", From 98abecf124317a772a9a3ced57ebd118e5823173 Mon Sep 17 00:00:00 2001 From: canada4663 <3118399+canada4663@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:44:16 -0700 Subject: [PATCH 2/2] remove duplicate entry for bedrock in provider list --- litellm/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/__init__.py b/litellm/__init__.py index 4e1409f2e7..887929519b 100644 --- a/litellm/__init__.py +++ b/litellm/__init__.py @@ -248,7 +248,6 @@ provider_list: List = [ "bedrock", "vllm", "nlp_cloud", - "bedrock", "petals", "oobabooga", "ollama",