-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (38 loc) · 1.52 KB
/
Copy path.env.example
File metadata and controls
47 lines (38 loc) · 1.52 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
# ReqRev API - Environment Configuration
# Copy this file to .env and fill in your values
# NEVER commit .env to version control!
# ===== API Configuration =====
API_HOST=0.0.0.0
API_PORT=8000
API_RELOAD=false
LOG_LEVEL=INFO
# ===== CORS Configuration =====
# Comma-separated list of allowed origins for browser extension
CORS_ORIGINS=chrome-extension://*,moz-extension://*,http://localhost:*
# ===== OpenAI Configuration =====
# Required: Get your key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here
# Model to use
# - For base model: gpt-4o-mini (default)
# - For fine-tuned model: ft:gpt-4o-mini:your-org:model-id:suffix
# Set this to your fine-tuned model ID after training
OPENAI_MODEL=gpt-4o-mini
# Model parameters
OPENAI_MAX_TOKENS=1500
OPENAI_TEMPERATURE=0.1
# ===== Judge Configuration (LLM-as-Judge) =====
# Optional: For research/evaluation of smell detection quality
# Uses OpenAI models to evaluate the primary model's detection quality
# Judge Model - Recommended: gpt-4o (best quality) or o1 (reasoning)
JUDGE_MODEL=gpt-4o
# Judge parameters
JUDGE_MAX_TOKENS=1000
JUDGE_TEMPERATURE=0.0
LLM_JUDGE_ENABLED=true
# ===== Notes =====
# - OpenAI API is REQUIRED for all functionality
# - Recommended setup: gpt-4o-mini for primary, gpt-4o for judge
# - Set OPENAI_MODEL to your fine-tuned model for best results
# - Judge endpoint (/analyze_requirement_with_judge) is for evaluation only
# - Keep API keys secret - never commit them to git
# - For production, use environment variables instead of .env file