-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (44 loc) · 2.81 KB
/
.env.example
File metadata and controls
55 lines (44 loc) · 2.81 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
# ─────────────────────────────────────────────────────────────────────────────
# ENVIRONMENT VARIABLES — copy this file to .env and fill in your values
# ─────────────────────────────────────────────────────────────────────────────
# ─── LLM Provider ────────────────────────────────────────────────────────────
# Primary : groq (fast, free tier, llama3)
# Fallback : google (Gemini — auto-used when Groq fails)
# Others : openai | anthropic
LLM_PROVIDER=groq
LLM_FALLBACK_PROVIDER=google
# OpenAI
OPENAI_API_KEY=sk-proj-your_openai_key_here
OPENAI_MODEL=gpt-4o-mini
# Google Gemini
GOOGLE_API_KEY=your_google_api_key_here
GOOGLE_MODEL=gemini-2.0-flash-lite
# Groq (ultra-fast, free tier available)
GROQ_API_KEY=gsk_your_groq_key_here
GROQ_MODEL=llama-3.1-8b-instant
# ─── PostgreSQL ───────────────────────────────────────────────────────────────
DB_HOST=localhost
DB_PORT=5432
DB_NAME=striver_dsa
DB_USER=postgres
DB_PASSWORD=postgres
# ─── Scraper Settings ─────────────────────────────────────────────────────────
SCRAPER_HEADLESS=true
SCRAPER_TIMEOUT=30
SCRAPER_RETRY_COUNT=3
# ─── LLM Settings ─────────────────────────────────────────────────────────────
LLM_MAX_TOKENS=2048
LLM_TEMPERATURE=0.1
LLM_RETRY_COUNT=3
LLM_RETRY_DELAY=5
LLM_REQUEST_DELAY=1
# Token budgets per call (sum = 3600)
PHASE1_MAX_TOKENS=1000 # approach + explanation + data_structure + workflow + tip_trick
PHASE2_MAX_TOKENS=1100 # python code
PHASE3_MAX_TOKENS=1500 # java + c++ translation
# ─── Cache ─────────────────────────────────────────────────────────────────────
LLM_CACHE_ENABLED=true
LLM_CACHE_FILE=llm_cache.json
# ─── Output ───────────────────────────────────────────────────────────────────
OUTPUT_EXCEL_PATH=Striver_SDE_Auto_Solved.xlsx
LOG_FILE=log.txt