fix: Fix can't read the milvus url config (#1808)

This commit is contained in:
Aries-ckt 2024-08-15 23:19:51 +08:00 committed by GitHub
parent 6ddde544bd
commit 6ed35925fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ logger = logging.getLogger(__name__)
"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(