Update config/settings.py
Browse files- config/settings.py +26 -10
config/settings.py
CHANGED
@@ -1,22 +1,38 @@
|
|
|
|
1 |
from pydantic_settings import BaseSettings
|
2 |
-
from
|
3 |
|
4 |
class Settings(BaseSettings):
|
5 |
APP_TITLE: str = "Quantum Healthcare Navigator"
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
OPENAI_API_KEY: Optional[str] = None
|
11 |
-
GEMINI_API_KEY: Optional[str] = None
|
12 |
UMLS_API_KEY: Optional[str] = None
|
13 |
BIOPORTAL_API_KEY: Optional[str] = None
|
|
|
|
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
class Config:
|
18 |
env_file = ".env"
|
19 |
env_file_encoding = 'utf-8'
|
20 |
-
extra = "ignore"
|
|
|
|
|
21 |
|
22 |
-
|
|
|
|
|
|
1 |
+
# /home/user/app/config/settings.py
|
2 |
from pydantic_settings import BaseSettings
|
3 |
+
from pathlib import Path
|
4 |
|
5 |
class Settings(BaseSettings):
|
6 |
APP_TITLE: str = "Quantum Healthcare Navigator"
|
7 |
+
DATABASE_URL: str = "sqlite:///./test.db" # Example
|
8 |
+
LOG_LEVEL: str = "INFO"
|
9 |
+
# API Keys (ensure these are loaded from environment variables or secrets)
|
10 |
+
SECRET_KEY: str = "your_very_secret_key_for_jwt_or_other_things" # Example
|
|
|
|
|
11 |
UMLS_API_KEY: Optional[str] = None
|
12 |
BIOPORTAL_API_KEY: Optional[str] = None
|
13 |
+
GEMINI_API_KEY: Optional[str] = None # Or your specific LLM API key
|
14 |
+
OPENAI_API_KEY: Optional[str] = None
|
15 |
|
16 |
+
# NEW: Disclaimer texts
|
17 |
+
MAIN_DISCLAIMER_SHORT: str = "AI for informational support only. Not a diagnostic tool. Verify with clinical judgment."
|
18 |
+
MAIN_DISCLAIMER_LONG: str = (
|
19 |
+
"This AI-powered tool is intended for informational and educational purposes to support healthcare professionals. "
|
20 |
+
"It is NOT a diagnostic tool, does not provide medical advice, and should NOT be used as a substitute for "
|
21 |
+
"independent professional medical judgment, diagnosis, or treatment. Always verify information with trusted clinical "
|
22 |
+
"resources and apply your professional expertise. Do not input real Patient Health Information (PHI)."
|
23 |
+
)
|
24 |
+
SIMULATION_DISCLAIMER: str = (
|
25 |
+
"Features described as 'Quantum' or involving optimization are currently simulated for demonstration "
|
26 |
+
"purposes and do not utilize actual quantum computing hardware or validated quantum algorithms for clinical decision-making."
|
27 |
+
)
|
28 |
|
29 |
class Config:
|
30 |
env_file = ".env"
|
31 |
env_file_encoding = 'utf-8'
|
32 |
+
extra = "ignore"
|
33 |
+
|
34 |
+
settings = Settings()
|
35 |
|
36 |
+
# For logo path (if you prefer it in settings)
|
37 |
+
# PROJECT_ROOT = Path(__file__).resolve().parent.parent
|
38 |
+
# LOGO_PATH = str(PROJECT_ROOT / "assets" / "logo.png")
|