mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
Update client-sdk test config option handling
Fix test
This commit is contained in:
parent
a67324c975
commit
95786d5bdc
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,10 @@ class FaissVectorIOImpl(VectorIO, VectorDBsProtocolPrivate):
|
||||||
return [i.vector_db for i in self.cache.values()]
|
return [i.vector_db for i in self.cache.values()]
|
||||||
|
|
||||||
async def unregister_vector_db(self, vector_db_id: str) -> None:
|
async def unregister_vector_db(self, vector_db_id: str) -> None:
|
||||||
|
if vector_db_id not in self.cache:
|
||||||
|
logger.warning(f"Vector DB {vector_db_id} not found")
|
||||||
|
return
|
||||||
|
|
||||||
await self.cache[vector_db_id].index.delete()
|
await self.cache[vector_db_id].index.delete()
|
||||||
del self.cache[vector_db_id]
|
del self.cache[vector_db_id]
|
||||||
await self.kvstore.delete(f"{VECTOR_DBS_PREFIX}{vector_db_id}")
|
await self.kvstore.delete(f"{VECTOR_DBS_PREFIX}{vector_db_id}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue