From 0044bcf3a8888f99f307d7b1fea887d4884ec53a Mon Sep 17 00:00:00 2001 From: GITHUBear Date: Wed, 30 Oct 2024 23:07:12 +0800 Subject: [PATCH] fix the issue that OceanBase config in .env does not take effect (#2108) Signed-off-by: shanhaikang.shk --- dbgpt/storage/vector_store/oceanbase_store.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dbgpt/storage/vector_store/oceanbase_store.py b/dbgpt/storage/vector_store/oceanbase_store.py index c9a2545af..6f6a1afbd 100644 --- a/dbgpt/storage/vector_store/oceanbase_store.py +++ b/dbgpt/storage/vector_store/oceanbase_store.py @@ -130,24 +130,24 @@ class Config: arbitrary_types_allowed = True """OceanBase config""" - ob_host: str = Field( - default="127.0.0.1", + ob_host: Optional[str] = Field( + default=None, description="oceanbase host", ) - ob_port: int = Field( - default=2881, + ob_port: Optional[int] = Field( + default=None, description="oceanbase port", ) - ob_user: str = Field( - default="root@test", + ob_user: Optional[str] = Field( + default=None, description="user to login", ) - ob_password: str = Field( - default="", + ob_password: Optional[str] = Field( + default=None, description="password to login", ) - ob_database: str = Field( - default="test", + ob_database: Optional[str] = Field( + default=None, description="database for vector tables", )