mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 03:04:11 +08:00
31 lines
857 B
Python
31 lines
857 B
Python
from typing import Optional
|
|
|
|
from pydantic import Field
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class TableStoreConfig(BaseSettings):
|
|
"""
|
|
Configuration settings for TableStore.
|
|
"""
|
|
|
|
TABLESTORE_ENDPOINT: Optional[str] = Field(
|
|
description="Endpoint address of the TableStore server (e.g. 'https://instance-name.cn-hangzhou.ots.aliyuncs.com')",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_INSTANCE_NAME: Optional[str] = Field(
|
|
description="Instance name to access TableStore server (eg. 'instance-name')",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_ACCESS_KEY_ID: Optional[str] = Field(
|
|
description="AccessKey id for the instance name",
|
|
default=None,
|
|
)
|
|
|
|
TABLESTORE_ACCESS_KEY_SECRET: Optional[str] = Field(
|
|
description="AccessKey secret for the instance name",
|
|
default=None,
|
|
)
|