# LangChain RAG API Environment Variables # Copy this file to .env and fill in your values # Required: OpenAI API Key OPENAI_API_KEY= # Required for session persistence: PostgreSQL Database URL # On Render, this is automatically set when you add a PostgreSQL database DATABASE_URL= # LangSmith Tracing (enable for demos after setting LANGSMITH_API_KEY) # Get your API key at https://smith.langchain.com LANGSMITH_TRACING=false LANGSMITH_ENDPOINT=https://api.smith.langchain.com LANGSMITH_API_KEY= LANGSMITH_PROJECT=demo # Optional: comma-separated browser origins allowed to call the API. # Wildcard origins are ignored; use explicit http:// or https:// origins. ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000 # Optional: enable admin/debug endpoints in trusted environments only. ENABLE_DEBUG_ENDPOINTS=false DEBUG_ERRORS=false OPENAI_MODEL=gpt-4o-mini