46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
|
|
APP_NAME=Medical Consultation Agent
|
||
|
|
APP_ENV=production
|
||
|
|
APP_DEBUG=false
|
||
|
|
APP_ROOT_PATH=/fastapi
|
||
|
|
API_V1_PREFIX=/api/v1
|
||
|
|
|
||
|
|
# Docker Compose service names
|
||
|
|
DATABASE_URL=mysql+pymysql://root:CHANGE_ME@mysql:3306/medical?charset=utf8mb4
|
||
|
|
RUNTIME_MEMORY_BACKEND=redis
|
||
|
|
RUNTIME_MEMORY_FALLBACK_ENABLED=false
|
||
|
|
RUNTIME_MEMORY_TTL_SECONDS=7200
|
||
|
|
REDIS_URL=redis://redis:6379/0
|
||
|
|
|
||
|
|
# Django service in the same Docker network
|
||
|
|
AUTH_VALIDATE_ENABLED=true
|
||
|
|
AUTH_USER_ME_URL=http://django:8000/api/user/users/me/
|
||
|
|
AUTH_TIMEOUT_SECONDS=5
|
||
|
|
AUTH_CACHE_TTL_SECONDS=300
|
||
|
|
|
||
|
|
# Replace with the actual frontend origin when cross-origin access is required
|
||
|
|
CORS_ALLOW_ORIGINS=http://YOUR_PUBLIC_HOST
|
||
|
|
CORS_ALLOW_ORIGIN_REGEX=
|
||
|
|
|
||
|
|
# OpenAI-compatible LLM
|
||
|
|
LLM_BASE_URL=https://api.deepseek.com/chat/completions
|
||
|
|
LLM_API_KEY=CHANGE_ME
|
||
|
|
LLM_MODEL=deepseek-chat
|
||
|
|
LLM_FAST_MODEL=deepseek-chat
|
||
|
|
LLM_REASON_MODEL=deepseek-reasoner
|
||
|
|
LLM_TIMEOUT_SECONDS=45
|
||
|
|
LLM_CHAT_TIMEOUT_SECONDS=20
|
||
|
|
LLM_STREAM_FIRST_TOKEN_TIMEOUT_SECONDS=15
|
||
|
|
LLM_STREAM_TOTAL_TIMEOUT_SECONDS=45
|
||
|
|
LLM_STREAM_ENABLED=true
|
||
|
|
LLM_MOCK_ENABLED=false
|
||
|
|
LLM_FALLBACK_TO_MOCK=false
|
||
|
|
LLM_FAST_THINKING_ENABLED=false
|
||
|
|
LLM_REASON_THINKING_ENABLED=false
|
||
|
|
LLM_REASONING_EFFORT=low
|
||
|
|
LLM_FAST_MAX_TOKENS=512
|
||
|
|
LLM_HINT_MAX_TOKENS=1200
|
||
|
|
LLM_SCORING_JSON_RESPONSE=true
|
||
|
|
LLM_SCORING_MAX_TOKENS=4096
|
||
|
|
|
||
|
|
REPORT_STORAGE_DIR=/app/storage/reports
|