upstash_config.py 518 B

123456789101112131415161718192021
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class UpstashConfig(BaseSettings):
  5. """
  6. Configuration settings for Upstash vector database
  7. """
  8. UPSTASH_VECTOR_URL: Optional[str] = Field(
  9. description="URL of the upstash server (e.g., 'https://vector.upstash.io')",
  10. default=None,
  11. )
  12. UPSTASH_VECTOR_TOKEN: Optional[str] = Field(
  13. description="Token for authenticating with the upstash server",
  14. default=None,
  15. )