# 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