Files
fastapi/.env.example
T

46 lines
1.3 KiB
Bash
Raw Normal View History

2026-06-03 15:51:46 +08:00
APP_NAME=Medical Consultation Agent
APP_ENV=local
APP_DEBUG=true
APP_ROOT_PATH=
API_V1_PREFIX=/api/v1
# Local MySQL and Redis
DATABASE_URL=mysql+pymysql://root:CHANGE_ME@127.0.0.1:3306/medical?charset=utf8mb4
RUNTIME_MEMORY_BACKEND=redis
RUNTIME_MEMORY_FALLBACK_ENABLED=true
RUNTIME_MEMORY_TTL_SECONDS=7200
REDIS_URL=redis://127.0.0.1:6379/0
# Django user center
AUTH_VALIDATE_ENABLED=true
AUTH_USER_ME_URL=http://127.0.0.1:8000/api/user/users/me/
AUTH_TIMEOUT_SECONDS=5
AUTH_CACHE_TTL_SECONDS=300
# Browser origins, separated by commas
CORS_ALLOW_ORIGINS=http://127.0.0.1:5173,http://localhost:5173
CORS_ALLOW_ORIGIN_REGEX=^http://(127\.0\.0\.1|localhost|192\.168\.\d+\.\d+):\d+$
# OpenAI-compatible LLM
LLM_BASE_URL=https://api.deepseek.com/chat/completions
LLM_API_KEY=
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=./storage/reports