From 2536e14f96beeb319475a5047cbe63b6bd2897a3 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Wed, 28 Jan 2026 18:50:39 -0800 Subject: [PATCH] fix code QA checks --- litellm/proxy/vector_store_endpoints/endpoints.py | 2 +- .../proxy/vector_store_endpoints/management_endpoints.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/litellm/proxy/vector_store_endpoints/endpoints.py b/litellm/proxy/vector_store_endpoints/endpoints.py index c0cfb92952e..9ba12537bc8 100644 --- a/litellm/proxy/vector_store_endpoints/endpoints.py +++ b/litellm/proxy/vector_store_endpoints/endpoints.py @@ -79,7 +79,7 @@ def _update_request_data_with_litellm_managed_vector_store_registry( if not _check_vector_store_access(vector_store_to_run, user_api_key_dict): raise HTTPException( status_code=403, - detail=f"Access denied: You do not have permission to access this vector store", + detail="Access denied: You do not have permission to access this vector store", ) if "custom_llm_provider" in vector_store_to_run: diff --git a/litellm/proxy/vector_store_endpoints/management_endpoints.py b/litellm/proxy/vector_store_endpoints/management_endpoints.py index 2a6bbbaa637..6185f1541fc 100644 --- a/litellm/proxy/vector_store_endpoints/management_endpoints.py +++ b/litellm/proxy/vector_store_endpoints/management_endpoints.py @@ -505,7 +505,7 @@ async def delete_vector_store( ): raise HTTPException( status_code=403, - detail=f"Access denied: You do not have permission to delete this vector store", + detail="Access denied: You do not have permission to delete this vector store", ) # Delete from database if exists @@ -548,8 +548,6 @@ async def get_vector_store_info( raise HTTPException(status_code=500, detail="Database not connected") try: - vector_store_data = None - if litellm.vector_store_registry is not None: vector_store = litellm.vector_store_registry.get_litellm_managed_vector_store_from_registry( vector_store_id=data.vector_store_id @@ -559,7 +557,7 @@ async def get_vector_store_info( if not _check_vector_store_access(vector_store, user_api_key_dict): raise HTTPException( status_code=403, - detail=f"Access denied: You do not have permission to access this vector store", + detail="Access denied: You do not have permission to access this vector store", ) vector_store_metadata = vector_store.get("vector_store_metadata") @@ -605,7 +603,7 @@ async def get_vector_store_info( if not _check_vector_store_access(vector_store_typed, user_api_key_dict): raise HTTPException( status_code=403, - detail=f"Access denied: You do not have permission to access this vector store", + detail="Access denied: You do not have permission to access this vector store", ) return {"vector_store": vector_store_dict}