Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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