From 6ed35925fb57d0cbc57c89395877cb15d1dc3053 Mon Sep 17 00:00:00 2001 From: Aries-ckt <916701291@qq.com> Date: Thu, 15 Aug 2024 23:19:51 +0800 Subject: [PATCH] fix: Fix can't read the milvus url config (#1808) --- dbgpt/storage/vector_store/milvus_store.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbgpt/storage/vector_store/milvus_store.py b/dbgpt/storage/vector_store/milvus_store.py index b8b036770..f0984d20e 100644 --- a/dbgpt/storage/vector_store/milvus_store.py +++ b/dbgpt/storage/vector_store/milvus_store.py @@ -35,7 +35,7 @@ "The uri of milvus store, if not set, will use the default " "uri." ), optional=True, - default="localhost", + default=None, ), Parameter.build_from( _("Port"), @@ -98,8 +98,8 @@ class MilvusVectorConfig(VectorStoreConfig): model_config = ConfigDict(arbitrary_types_allowed=True) - uri: str = Field( - default="localhost", + uri: Optional[str] = Field( + default=None, description="The uri of milvus store, if not set, will use the default uri.", ) port: str = Field(