From 27e465e36b65930299366c082707199d3bedeee0 Mon Sep 17 00:00:00 2001 From: zach Date: Sat, 11 Apr 2026 11:44:42 -0700 Subject: [PATCH] fix: also fix VectorStoreIndexRegistry.__init__ mutable default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses review feedback — missed sibling class in the same file. --- litellm/vector_stores/vector_store_registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/vector_stores/vector_store_registry.py b/litellm/vector_stores/vector_store_registry.py index 070dd47a39c..6e9e7ad9029 100644 --- a/litellm/vector_stores/vector_store_registry.py +++ b/litellm/vector_stores/vector_store_registry.py @@ -22,11 +22,11 @@ else: class VectorStoreIndexRegistry: def __init__( - self, vector_store_indexes: List[LiteLLM_ManagedVectorStoreIndex] = [] + self, vector_store_indexes: Optional[List[LiteLLM_ManagedVectorStoreIndex]] = None ): self.vector_store_indexes: List[ LiteLLM_ManagedVectorStoreIndex - ] = vector_store_indexes + ] = vector_store_indexes or [] def get_vector_store_indexes(self) -> List[LiteLLM_ManagedVectorStoreIndex]: """