mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fixbug: correct parameter name for MilvusClient instantiation
Replace incorrect parameter 'database=MILVUS_DB' with valid 'db_name=MILVUS_DB'
This commit is contained in:
parent
8697f72068
commit
67ed61d022
1 changed files with 2 additions and 2 deletions
|
|
@ -20,9 +20,9 @@ class MilvusClient:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.collection_prefix = "open_webui"
|
self.collection_prefix = "open_webui"
|
||||||
if MILVUS_TOKEN is None:
|
if MILVUS_TOKEN is None:
|
||||||
self.client = Client(uri=MILVUS_URI, database=MILVUS_DB)
|
self.client = Client(uri=MILVUS_URI, db_name=MILVUS_DB)
|
||||||
else:
|
else:
|
||||||
self.client = Client(uri=MILVUS_URI, database=MILVUS_DB, token=MILVUS_TOKEN)
|
self.client = Client(uri=MILVUS_URI, db_name=MILVUS_DB, token=MILVUS_TOKEN)
|
||||||
|
|
||||||
def _result_to_get_result(self, result) -> GetResult:
|
def _result_to_get_result(self, result) -> GetResult:
|
||||||
ids = []
|
ids = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue