File size: 645 Bytes
69e015a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
APP_TITLE: str = "Quantum Healthcare Navigator"
SECRET_KEY: str = "super_secret_dev_key" # Should be overridden by env
DATABASE_URL: str = "sqlite:///./quantum_healthcare.db"
OPENAI_API_KEY: Optional[str] = None
GEMINI_API_KEY: Optional[str] = None
UMLS_API_KEY: Optional[str] = None
BIOPORTAL_API_KEY: Optional[str] = None
LOG_LEVEL: str = "INFO"
class Config:
env_file = ".env"
env_file_encoding = 'utf-8'
extra = "ignore" # Ignore extra fields from .env
settings = Settings() |