forked from imDarshanGK/AI-dev-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
61 lines (51 loc) · 2.5 KB
/
Copy path.env.example
File metadata and controls
61 lines (51 loc) · 2.5 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# QyverixAI — Environment Variables
# Copy this file to .env and fill in values as needed.
# NEVER commit your actual .env file to git.
# ── AI Provider ─────────────────────────────────────────────
AI_PROVIDER=rule-based
AI_MODEL=local-rule-engine-v1
# ── Rate Limiting ─────────────────────────────────────────────
RATE_LIMIT_PER_MINUTE=30
MAX_CODE_CHARS=20000
MAX_REQUEST_BYTES=1048576
RATE_LIMIT_REQUESTS=120
RATE_LIMIT_WINDOW_SECONDS=60
# ── Cache ─────────────────────────────────────────────────────
CACHE_ENABLED=True
CACHE_TTL_SECONDS=300
CACHE_MAX_ENTRIES=100
# ── Optional LLM Integration ──────────────────────────────────
# Set LLM_ENABLED=true to enable AI-powered analysis.
# Works with OpenAI, Groq, Together AI, Ollama, or any OpenAI-compatible endpoint.
LLM_ENABLED=false
LLM_API_KEY=
LLM_BASE_URL=https://api.openai.com/v1
LLM_MODEL=gpt-4o-mini
LLM_TIMEOUT_SECONDS=30
LLM_MAX_RETRIES=3
LLM_RETRY_BACKOFF=1.0
# ── Authentication ─────────────────────────────────────────────
JWT_SECRET=change-this-in-production-min-32-bytes
JWT_ALGORITHM=HS256
ACCESS_TOKEN_MINUTES=720
# ── Database ───────────────────────────────────────────────────
DATABASE_URL=sqlite:///./assistant.db
# ── Observability (Prometheus metrics + health probes) ─────────
# Set METRICS_ENABLED=false to disable /metrics and skip the metrics
# middleware entirely (zero overhead).
METRICS_ENABLED=true
# Optional: require `Authorization: Bearer <token>` on /metrics. Leave blank
# when scraping happens from inside the cluster network.
METRICS_AUTH_TOKEN=
# Set this when running uvicorn with --workers N > 1 (multiprocess scrape).
# The directory must exist and be writable. Leave blank for single-worker.
# PROMETHEUS_MULTIPROC_DIR=/tmp/prometheus_multiproc
# SMTP Configuration (for local dev)
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USER=
SMTP_PASS=
EMAIL_FROM=noreply@example.com
# Digest / Notification System
DIGEST_ENABLED=false
DIGEST_BASE_URL=http://localhost:8000