Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

[Bug fix] Vector Store List Endpoint Returns 404 (#17229)

Ishaan Jaff38ddd506283b
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index e4a1550e000..28ee370ff0c 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -286,7 +286,9 @@ from litellm.proxy.management_endpoints.customer_endpoints import (
from litellm.proxy.management_endpoints.internal_user_endpoints import (
router as internal_user_router,
)
-from litellm.proxy.management_endpoints.internal_user_endpoints import user_update
+from litellm.proxy.management_endpoints.internal_user_endpoints import (
+ user_update,
+)
from litellm.proxy.management_endpoints.key_management_endpoints import (
delete_verification_tokens,
duration_in_seconds,
@@ -340,7 +342,9 @@ from litellm.proxy.ocr_endpoints.endpoints import router as ocr_router
from litellm.proxy.openai_files_endpoints.files_endpoints import (
router as openai_files_router,
)
-from litellm.proxy.openai_files_endpoints.files_endpoints import set_files_config
+from litellm.proxy.openai_files_endpoints.files_endpoints import (
+ set_files_config,
+)
from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import (
passthrough_endpoint_router,
)
@@ -394,6 +398,9 @@ from litellm.proxy.utils import (
update_spend,
)
from litellm.proxy.vector_store_endpoints.endpoints import router as vector_store_router
+from litellm.proxy.vector_store_endpoints.management_endpoints import (
+ router as vector_store_management_router,
+)
from litellm.proxy.vector_store_files_endpoints.endpoints import (
router as vector_store_files_router,
)
@@ -432,7 +439,9 @@ from litellm.types.proxy.management_endpoints.ui_sso import (
LiteLLM_UpperboundKeyGenerateParams,
)
from litellm.types.realtime import RealtimeQueryParams
-from litellm.types.router import DeploymentTypedDict
+from litellm.types.router import (
+ DeploymentTypedDict,
+)
from litellm.types.router import ModelInfo as RouterModelInfo
from litellm.types.router import (
RouterGeneralSettings,
@@ -10163,6 +10172,7 @@ app.include_router(search_router)
app.include_router(image_router)
app.include_router(fine_tuning_router)
app.include_router(vector_store_router)
+app.include_router(vector_store_management_router)
app.include_router(vector_store_files_router)
app.include_router(credential_router)
app.include_router(llm_passthrough_router)
diff --git a/enterprise/litellm_enterprise/proxy/vector_stores/endpoints.py b/litellm/proxy/vector_store_endpoints/management_endpoints.py
similarity index 100%
rename from enterprise/litellm_enterprise/proxy/vector_stores/endpoints.py
rename to litellm/proxy/vector_store_endpoints/management_endpoints.py
diff --git a/tests/code_coverage_tests/enforce_llms_folder_style.py b/tests/code_coverage_tests/enforce_llms_folder_style.py
index 7588f7771b0..880154baa07 100644
--- a/tests/code_coverage_tests/enforce_llms_folder_style.py
+++ b/tests/code_coverage_tests/enforce_llms_folder_style.py
@@ -23,6 +23,7 @@ ALLOWED_FILES_IN_LLMS_FOLDER = [
"custom_httpx",
"custom_llm",
"deprecated_providers",
+ "pass_through"
] + SEARCH_PROVIDERS
diff --git a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py b/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py
index 20f9eefaf3f..badbef42d6c 100644
--- a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py
+++ b/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py
@@ -762,3 +762,43 @@ class TestIsAllowedToCallVectorStoreFilesEndpoint:
)
assert result is None
+
+
+class TestVectorStoreManagementEndpointsExist:
+ def test_vector_store_management_endpoints_exist_on_proxy_startup(self):
+ """
+ Test that all vector store management endpoints are registered on proxy app startup.
+
+ Verifies the following endpoints exist in the proxy_server app:
+ - POST /vector_store/new
+ - GET /vector_store/list
+ - POST /vector_store/delete
+ - POST /vector_store/info
+ - POST /vector_store/update
+ """
+ from litellm.proxy.proxy_server import app
+
+ # Define expected endpoints
+ expected_endpoints = [
+ ("POST", "/vector_store/new"),
+ ("GET", "/vector_store/list"),
+ ("POST", "/vector_store/delete"),
+ ("POST", "/vector_store/info"),
+ ("POST", "/vector_store/update"),
+ ]
+
+ # Get all routes from the app
+ app_routes = []
+ for route in app.routes:
+ methods = getattr(route, "methods", None)
+ path = getattr(route, "path", None)
+ if methods is not None and path is not None:
+ for method in methods:
+ app_routes.append((method, path))
+
+ # Verify each expected endpoint exists
+ for method, path in expected_endpoints:
+ assert (method, path) in app_routes, (
+ f"Expected endpoint {method} {path} not found in registered routes. "
+ f"Available routes: {app_routes}"
+ )