您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

tablestore_config.py 984B

123456789101112131415161718192021222324252627282930313233
  1. from pydantic import Field
  2. from pydantic_settings import BaseSettings
  3. class TableStoreConfig(BaseSettings):
  4. """
  5. Configuration settings for TableStore.
  6. """
  7. TABLESTORE_ENDPOINT: str | None = Field(
  8. description="Endpoint address of the TableStore server (e.g. 'https://instance-name.cn-hangzhou.ots.aliyuncs.com')",
  9. default=None,
  10. )
  11. TABLESTORE_INSTANCE_NAME: str | None = Field(
  12. description="Instance name to access TableStore server (eg. 'instance-name')",
  13. default=None,
  14. )
  15. TABLESTORE_ACCESS_KEY_ID: str | None = Field(
  16. description="AccessKey id for the instance name",
  17. default=None,
  18. )
  19. TABLESTORE_ACCESS_KEY_SECRET: str | None = Field(
  20. description="AccessKey secret for the instance name",
  21. default=None,
  22. )
  23. TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCORE: bool = Field(
  24. description="Whether to normalize full-text search scores to [0, 1]",
  25. default=False,
  26. )