-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
29 lines (24 loc) · 955 Bytes
/
Copy path.env.example
File metadata and controls
29 lines (24 loc) · 955 Bytes
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
# Copy to .env and fill in. The backend loads this via pydantic-settings.
# --- OpenAI ---
OPENAI_API_KEY=sk-replace-me
OPENAI_CHAT_MODEL=gpt-4o-mini
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# --- Admin auth ---
# Single password check guarded by a FastAPI Depends().
# Login POSTs this password and the backend issues a signed cookie.
ADMIN_PASSWORD=replace-with-strong-password
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
SESSION_SECRET=replace-with-64-char-hex
# --- App ---
ENVIRONMENT=development
CORS_ORIGINS=http://localhost:5173
DATABASE_URL=sqlite+aiosqlite:///./data/app.db
CHROMA_PATH=./data/chroma
CHROMA_COLLECTION=python_docs
# --- Ingest ---
# Which Python docs version to ingest. Pin a patch version for reproducibility.
PYTHON_DOCS_VERSION=3.12.7
# Comma-separated module names to include from the docs archive.
PYTHON_DOCS_MODULES=asyncio,typing
# --- Rate limit ---
CHAT_RATE_LIMIT_PER_MINUTE=30