Spaces:
Sleeping
Sleeping
File size: 1,406 Bytes
c97e8a9 | 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 40 41 42 43 44 45 | # ---------------------------------------------------------------------------
# Adaptive Presentation Engine — environment config
# Copy to `.env` and fill in the values. Never commit real secrets.
# ---------------------------------------------------------------------------
# LLM provider: "anthropic" or "openai_compat"
LLM_MODE=anthropic
BASELINE_LLM_MODE=anthropic
ADAPTIVE_LLM_MODE=anthropic
# --- Anthropic (Claude) ---
ANTHROPIC_API_KEY=REPLACE_ME
ANTHROPIC_MODEL=claude-sonnet-4-6
ANTHROPIC_FAST_MODE_ENABLED=1
# --- OpenAI-compatible (OpenAI, Groq, etc.) ---
OPENAI_API_KEY=
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4.1
# --- Generation budgets ---
COMBINED_TIMEOUT_SECONDS=45
COMBINED_MAX_TOKENS=4000
# --- Widget output mode: "json" (preferred) or "html" ---
WIDGET_MODE=json
# --- Bandit / format enforcement ---
STRICT_PRIMITIVES=1
# --- Admin bootstrap (required for primitives / strategy management) ---
ADMIN_USERNAME=admin
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# --- Auth ---
# Generate a strong random value for production (e.g. `python -c "import secrets;print(secrets.token_urlsafe(64))"`).
JWT_SECRET=change-me-to-a-long-random-secret
JWT_EXPIRE_SECONDS=604800
# --- Runtime env ---
# "development" exposes password-reset tokens to the caller for local testing.
# Must be "production" in real deployments.
ENV=development
|