feat(tarot-lab): config + Pydantic 모델 5개 추출
This commit is contained in:
16
tarot-lab/app/config.py
Normal file
16
tarot-lab/app/config.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""tarot-lab 환경변수."""
|
||||
import os
|
||||
|
||||
ANTHROPIC_API_KEY = os.getenv("ANTHROPIC_API_KEY", "")
|
||||
TAROT_MODEL = os.getenv("TAROT_MODEL", "claude-sonnet-4-6")
|
||||
TAROT_COST_INPUT_PER_M = float(os.getenv("TAROT_COST_INPUT_PER_M", "3.0"))
|
||||
TAROT_COST_OUTPUT_PER_M = float(os.getenv("TAROT_COST_OUTPUT_PER_M", "15.0"))
|
||||
TAROT_TIMEOUT_SEC = int(os.getenv("TAROT_TIMEOUT_SEC", "180"))
|
||||
|
||||
TAROT_DATA_PATH = os.getenv("TAROT_DATA_PATH", "/app/data")
|
||||
DB_PATH = os.path.join(TAROT_DATA_PATH, "tarot.db")
|
||||
|
||||
CORS_ALLOW_ORIGINS = os.getenv(
|
||||
"CORS_ALLOW_ORIGINS",
|
||||
"http://localhost:3007,http://localhost:8080",
|
||||
)
|
||||
Reference in New Issue
Block a user