mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-14 20:41:21 +08:00
bab4975809
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
34 lines
984 B
Python
34 lines
984 B
Python
from pydantic import Field
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class TableStoreConfig(BaseSettings):
|
|
"""
|
|
Configuration settings for TableStore.
|
|
"""
|
|
|
|
TABLESTORE_ENDPOINT: str | None = Field(
|
|
description="Endpoint address of the TableStore server (e.g. 'https://instance-name.cn-hangzhou.ots.aliyuncs.com')",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_INSTANCE_NAME: str | None = Field(
|
|
description="Instance name to access TableStore server (eg. 'instance-name')",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_ACCESS_KEY_ID: str | None = Field(
|
|
description="AccessKey id for the instance name",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_ACCESS_KEY_SECRET: str | None = Field(
|
|
description="AccessKey secret for the instance name",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCORE: bool = Field(
|
|
description="Whether to normalize full-text search scores to [0, 1]",
|
|
default=False,
|
|
)
|