You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.py 501 B

123456789101112131415161718
  1. # api/config.py
  2. from pydantic_settings import BaseSettings
  3. class Settings(BaseSettings):
  4. DATABASE_URI: str = "sqlite:///./autogen0404.db"
  5. API_DOCS: bool = False
  6. CLEANUP_INTERVAL: int = 300 # 5 minutes
  7. SESSION_TIMEOUT: int = 3600 # 1 hour
  8. CONFIG_DIR: str = "configs" # Default config directory relative to app_root
  9. DEFAULT_USER_ID: str = "guestuser@gmail.com"
  10. UPGRADE_DATABASE: bool = False
  11. model_config = {"env_prefix": "AUTOGENSTUDIO_"}
  12. settings = Settings()