mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 12:21:08 +00:00
fix the issue that OceanBase config in .env does not take effect (#2108)
Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
This commit is contained in:
parent
3b7191b54c
commit
0044bcf3a8
@ -130,24 +130,24 @@ class OceanBaseConfig(VectorStoreConfig):
|
|||||||
arbitrary_types_allowed = True
|
arbitrary_types_allowed = True
|
||||||
|
|
||||||
"""OceanBase config"""
|
"""OceanBase config"""
|
||||||
ob_host: str = Field(
|
ob_host: Optional[str] = Field(
|
||||||
default="127.0.0.1",
|
default=None,
|
||||||
description="oceanbase host",
|
description="oceanbase host",
|
||||||
)
|
)
|
||||||
ob_port: int = Field(
|
ob_port: Optional[int] = Field(
|
||||||
default=2881,
|
default=None,
|
||||||
description="oceanbase port",
|
description="oceanbase port",
|
||||||
)
|
)
|
||||||
ob_user: str = Field(
|
ob_user: Optional[str] = Field(
|
||||||
default="root@test",
|
default=None,
|
||||||
description="user to login",
|
description="user to login",
|
||||||
)
|
)
|
||||||
ob_password: str = Field(
|
ob_password: Optional[str] = Field(
|
||||||
default="",
|
default=None,
|
||||||
description="password to login",
|
description="password to login",
|
||||||
)
|
)
|
||||||
ob_database: str = Field(
|
ob_database: Optional[str] = Field(
|
||||||
default="test",
|
default=None,
|
||||||
description="database for vector tables",
|
description="database for vector tables",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user