mgbam commited on
Commit
69e015a
·
verified ·
1 Parent(s): 84945cb

Update config/settings.py

Browse files
Files changed (1) hide show
  1. config/settings.py +22 -0
config/settings.py CHANGED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydantic_settings import BaseSettings
2
+ from typing import Optional
3
+
4
+ class Settings(BaseSettings):
5
+ APP_TITLE: str = "Quantum Healthcare Navigator"
6
+ SECRET_KEY: str = "super_secret_dev_key" # Should be overridden by env
7
+
8
+ DATABASE_URL: str = "sqlite:///./quantum_healthcare.db"
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
+ LOG_LEVEL: str = "INFO"
16
+
17
+ class Config:
18
+ env_file = ".env"
19
+ env_file_encoding = 'utf-8'
20
+ extra = "ignore" # Ignore extra fields from .env
21
+
22
+ settings = Settings()