Team Ai
Apppublic

sweta-chovatiya/AI-code-Explainer

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes
.env.example49 linesDownload Raw Back to root
1# =============================================================================2# AI Code Explainer - Environment Configuration3# =============================================================================4# Copy this file to .env and fill in your values5# =============================================================================6 7# -----------------------------------------------------------------------------8# REQUIRED: Groq API Configuration9# -----------------------------------------------------------------------------10 11# Your Groq API key (get from https://console.groq.com)12GROQ_API_KEY=your_groq_api_key_here13 14# -----------------------------------------------------------------------------15# OPTIONAL: API Configuration16# -----------------------------------------------------------------------------17 18# API endpoint (WITHOUT /openai/v1 suffix - SDK adds it automatically)19GROQ_BASE_URL=https://api.groq.com20 21# AI model to use (must be a valid Groq model)22# Options:23#   - llama-3.3-70b-versatile (Recommended - Best quality)24#   - llama-3.1-8b-instant (Faster - Good for simple code)25#   - llama-3.1-70b-versatile (High quality alternative)26#   - mixtral-8x7b-32768 (Large context window)27#   - gemma2-9b-it (Google's efficient model)28GROQ_MODEL_NAME=llama-3.3-70b-versatile29 30# -----------------------------------------------------------------------------31# OPTIONAL: Application Settings32# -----------------------------------------------------------------------------33 34# Maximum number of code lines to analyze (default: 500)35MAX_CODE_LINES=50036 37# Maximum file upload size in MB (default: 5)38MAX_FILE_SIZE_MB=539 40# -----------------------------------------------------------------------------41# OPTIONAL: API Mode Settings (only used with --mode api)42# -----------------------------------------------------------------------------43 44# FastAPI server host45API_HOST=0.0.0.046 47# FastAPI server port48API_PORT=800049