from pydantic_settings import BaseSettings, SettingsConfigDict from typing import List class Settings(BaseSettings): """Application settings.""" model_config = SettingsConfigDict( env_file=".env", env_file_encoding="utf-8", ) # Database DATABASE_URL: str = "postgresql+asyncpg://user:password@localhost:5432/yuntu_kol" # CORS CORS_ORIGINS: List[str] = ["http://localhost:3000"] # Brand API BRAND_API_BASE_URL: str = "https://api.internal.intelligrow.cn" # API Settings MAX_QUERY_LIMIT: int = 1000 BRAND_API_TIMEOUT: float = 3.0 BRAND_API_CONCURRENCY: int = 10 settings = Settings()