Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
37 lines (32 loc) · 1.65 KB
/
Copy path.env.example
File metadata and controls
37 lines (32 loc) · 1.65 KB
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
# Backend
DATABASE_URL=postgresql+psycopg2://befriends:befriends@localhost:5432/befriends
# SQLite fallback for local dev (no Postgres):
# DATABASE_URL=sqlite:///backend/data/befriend.db
# Login (single user, NO signup). Set a strong password.
# Username defaults to "Mohit" if APP_USERNAME is unset.
APP_USERNAME=Mohit
APP_PASSWORD=change-me
# Secret used to sign login tokens. Set a long random value in production.
# (Changing it logs everyone out.)
APP_SECRET=change-me-too
# Token lifetime in seconds (default 7 days).
# APP_TOKEN_TTL=604800
# LLM provider (OpenAI-compatible). Defaults to OpenAI; for OpenRouter:
# OPENAI_BASE_URL=https://openrouter.ai/api/v1
# OPENAI_API_KEY=sk-or-v1-... (your OpenRouter key, not an OpenAI key)
# LLM_MODEL=<OpenRouter model id>, e.g. openai/gpt-4o-mini or anthropic/claude-3.5-sonnet
# For Groq (free tier): OPENAI_BASE_URL=https://api.groq.com/openai/v1 with LLM_MODEL=llama-3.3-70b-versatile
# (8B-class models like llama-3.1-8b-instant truncate/undershoot 1000+ word articles; use a 70B model.)
OPENAI_API_KEY=
OPENAI_BASE_URL=https://api.openai.com/v1
LLM_MODEL=gpt-4o-mini
# Gemini (free tier) for the cheap high-volume agents (critic, simplifier, reviser)
# so Groq's 6000 TPM budget is reserved for writing. Older names (gemini-2.0-flash,
# gemini-2.5-flash) return 404 for new keys; use the -latest alias.
GEMINI_API_KEY=
GEMINI_MODEL=gemini-flash-lite-latest
# For higher critic quality at higher cost: GEMINI_MODEL=gemini-flash-latest
# News provider (optional; RSS fallback is used if empty)
NEWS_API_KEY=
# Frontend (build/start time): where /api requests are proxied to.
# NEXT_PUBLIC_API_URL=http://localhost:8000