MedQA / config /settings.py
mgbam's picture
Update config/settings.py
69e015a verified
raw
history blame
645 Bytes
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()