-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (34 loc) · 1.65 KB
/
.env.example
File metadata and controls
42 lines (34 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
38
39
40
41
42
# Install & run (uv): uv sync && uv run uvicorn app:app --host 0.0.0.0 --port 7860
# Or: uv run python app.py
# Required for Gemini (GOOGLE_API_KEY takes precedence over GEMINI_API_KEY per SDK)
GOOGLE_API_KEY=
# Optional override; if unset, SDK reads GOOGLE_API_KEY / GEMINI_API_KEY from environment
# GEMINI_API_KEY=
# Models (Gemini Developer API — use the exact ID from https://ai.google.dev/gemini-api/docs/models )
GEMINI_MODEL=gemini-2.5-flash
SCOPE_GATE_MODEL=gemini-2.5-flash
# Profile knowledge: non-empty PROFILE_CONTEXT overrides the file.
# PROFILE_PATH may be a .pdf (text extracted with PyMuPDF), or .md / .txt.
# EXTRA_PROFILE_PATHS: optional comma-separated .md / .txt / .pdf files merged after the primary
# source—use for copy exported from your live site (e.g. srini.fyi) so the bot matches the site.
# profile.md in the repo root is also merged automatically when present (e.g. CI push from portfolio).
PROFILE_CONTEXT=
PROFILE_PATH=Profile.pdf
EXTRA_PROFILE_PATHS=
# Input / output limits
MAX_MESSAGE_CHARS=2000
# Higher = longer replies (still bounded by model limits)
MAX_OUTPUT_TOKENS=4096
# 0.4–0.9: higher = more natural variation (first-person voice); keep grounded in Profile
CHAT_TEMPERATURE=0.65
SCOPE_GATE_MAX_OUTPUT_TOKENS=128
# Rate limit: max user messages per sliding window (per IP when available)
RATE_LIMIT_MAX_MESSAGES=20
RATE_LIMIT_WINDOW_SECONDS=900
# Comma-separated origins for CSP frame-ancestors. Use * to allow any parent frame.
# https://huggingface.co is auto-appended (unless *) so the Space runs on the HF site.
# Example: http://localhost:5173,https://srini.fyi
FRAME_ANCESTORS=*
# Server (uvicorn)
HOST=0.0.0.0
PORT=7860