Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the issue that OceanBase config in .env does not take effect #2108

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions dbgpt/storage/vector_store/oceanbase_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down
Loading