Spaces:
Sleeping
Sleeping
File size: 685 Bytes
507973e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
)
database_url: str = "sqlite+aiosqlite:///./todo.db"
secret_key: str = "change-this-in-production"
algorithm: str = "HS256"
access_token_expire_minutes: int = 30
app_name: str = "Phase II Full-Stack Todo App"
version: str = "0.1.0"
debug: bool = False
frontend_url: str = "http://localhost:3000"
openai_api_key: str = ""
gemini_api_key: str = ""
routing_policy: str = "failover"
default_provider: str = "gemini"
settings = Settings()
|