Add LLM token
This commit is contained in:
@@ -41,6 +41,10 @@ class MinioDocumentBinaryStore(DocumentBinaryStore):
|
||||
raise FileNotFoundError(f"对象不存在: {object_name}")
|
||||
return data
|
||||
|
||||
def list_objects(self, prefix: str = "") -> list[str]:
|
||||
"""List object names in the bucket that start with the given prefix."""
|
||||
return self.client.list_objects(prefix=prefix)
|
||||
|
||||
def delete(self, object_name: str) -> None:
|
||||
"""Handle delete for the Minio Document Binary Store instance."""
|
||||
if not self.client.delete_object(object_name):
|
||||
|
||||
Reference in New Issue
Block a user