# ============================================================================= # NexaMind AI - Environment Configuration # ============================================================================= # Copy this file to ".env" and fill in the values you have. # You do NOT need all three AI providers configured - NexaMind AI will # gracefully work with whichever ones you provide, and will show a clear # message if none are configured at all. # # NEVER commit your real ".env" file to Git. It is already listed in # .gitignore for you. # ============================================================================= # ---- AI Provider API Keys --------------------------------------------------- # OpenAI: https://platform.openai.com/api-keys OPENAI_API_KEY= # Anthropic Claude: https://console.anthropic.com/settings/keys ANTHROPIC_API_KEY= # Google Gemini: https://aistudio.google.com/app/apikey GEMINI_API_KEY= # ---- AI Model Selection (optional - sensible defaults are used) ----------- OPENAI_MODEL=gpt-4o-mini ANTHROPIC_MODEL=claude-3-5-sonnet-20241022 GEMINI_MODEL=gemini-1.5-flash OPENAI_EMBEDDING_MODEL=text-embedding-3-small GEMINI_EMBEDDING_MODEL=models/embedding-001 # ---- Server configuration -------------------------------------------------- # Render provides PORT automatically. Locally it defaults to 8000. PORT=8000 HOST=0.0.0.0 ENVIRONMENT=development # ---- Advanced (optional) ---------------------------------------------------- AI_REQUEST_TIMEOUT=45 MAX_UPLOAD_SIZE_MB=15 CHUNK_SIZE_CHARS=1200 CHUNK_OVERLAP_CHARS=200 RAG_TOP_K=4 MAX_HISTORY_MESSAGES=20