fix: also fix VectorStoreIndexRegistry.__init__ mutable default

Addresses review feedback — missed sibling class in the same file.
This commit is contained in:
zach 2026-04-11 11:44:42 -07:00
parent 2df755425a
commit 27e465e36b

View file

@ -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]:
"""