MedQA / config /settings.py
mgbam's picture
Update config/settings.py
8a16650 verified
# /home/user/app/config/settings.py
from pydantic_settings import BaseSettings
from pathlib import Path
from typing import Optional # IMPORTED Optional
class Settings(BaseSettings):
APP_TITLE: str = "Quantum Healthcare Navigator"
DATABASE_URL: str = "sqlite:///./medqa_app.db"
LOG_LEVEL: str = "INFO"
OPENAI_API_KEY: Optional[str] = None
UMLS_API_KEY: Optional[str] = None
BIOPORTAL_API_KEY: Optional[str] = None
GEMINI_API_KEY: Optional[str] = None # Kept for flexibility, but agent uses OpenAI
SECRET_KEY: str = "your_strong_secret_key_for_the_application_f34f1923s"
MAIN_DISCLAIMER_SHORT: str = (
"AI for informational support only. Not a diagnostic tool. "
"Verify information with clinical judgment. **Do not enter real PHI.**"
)
MAIN_DISCLAIMER_LONG: str = (
"This AI-powered tool is intended for informational and educational purposes to support healthcare professionals. "
"It is NOT a diagnostic tool, does not provide medical advice, and should NOT be used as a substitute for "
"independent professional medical judgment, diagnosis, or treatment. Always verify information with trusted clinical "
"resources and apply your professional expertise. **Do not input real Patient Health Information (PHI) into this system.**"
)
SIMULATION_DISCLAIMER: str = (
"Features described as 'Quantum' or involving optimization are currently **simulated for demonstration "
"purposes** and do not utilize actual quantum computing hardware or validated quantum algorithms for clinical decision-making."
)
class Config:
env_file = ".env"
env_file_encoding = 'utf-8'
extra = "ignore"
settings = Settings()