File size: 2,348 Bytes
bae0f63
 
 
 
f0f84fb
bae0f63
f0f84fb
bae0f63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# PsyPredict v2.0 Environment Configuration
# Copy this file to .env and fill in any overrides needed.
# All values below are production defaults.

# ── Ollama / Phi-3.5 Mini (Local Inference) ──────────────────────────────────
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=phi3.5:3.8b-mini-instruct-q4_0
OLLAMA_TIMEOUT_S=90
OLLAMA_RETRIES=3
OLLAMA_RETRY_DELAY_S=2.0

# ── DistilBERT Text Emotion Model ────────────────────────────────────────────
DISTILBERT_MODEL=bhadresh-savani/distilbert-base-uncased-emotion

# ── Crisis Detection ─────────────────────────────────────────────────────────
CRISIS_THRESHOLD=0.65

# ── Multimodal Fusion Weights (TEXT + FACE must be <= 1.0) ──────────────────
TEXT_WEIGHT=0.65
FACE_WEIGHT=0.35

# ── Context Window ───────────────────────────────────────────────────────────
MAX_CONTEXT_TURNS=10

# ── Logging ──────────────────────────────────────────────────────────────────
LOG_LEVEL=INFO

# ── Rate Limiting ─────────────────────────────────────────────────────────────
RATE_LIMIT=30/minute

# ── Input Limits ─────────────────────────────────────────────────────────────
MAX_INPUT_CHARS=2000

# ── Frontend URL (for reference) ─────────────────────────────────────────────
VITE_BACKEND_URL=http://localhost:7860

# ── Deprecated (no longer used - kept for reference) ────────────────────────
# GOOGLE_API_KEY=your_key_here