-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
52 lines (42 loc) · 1.59 KB
/
env.example
File metadata and controls
52 lines (42 loc) · 1.59 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
48
49
50
51
# ================================================
# Chat API Server - Environment Configuration
# ================================================
#
# Instructions:
# 1. Copy this file to .env:
# Windows: copy env.example .env
# Mac/Linux: cp env.example .env
# 2. Fill in your actual API keys below
# 3. NEVER commit the .env file to git!
#
# ================================================
# Server Configuration
# ================================================
PORT=3001
# ================================================
# AI Provider API Keys (Choose ONE)
# ================================================
# Option 1: Google Gemini (Currently active in index.js)
# Get your key: https://makersuite.google.com/app/apikey
# FREE tier: 60 requests/minute, no credit card required! 🎉
GEMINI_API_KEY=your_gemini_api_key_here
# Alternative key name (index.js checks both)
GOOGLE_API_KEY=your_google_api_key_here
# Option 2: OpenAI GPT
# Get your key: https://platform.openai.com/api-keys
# PAID: Requires credit card, ~$0.002 per 1K tokens
# OPENAI_API_KEY=sk-your_openai_api_key_here
# Option 3: Anthropic Claude
# Get your key: https://console.anthropic.com/
# PAID: Requires credit card
# ANTHROPIC_API_KEY=your_anthropic_api_key_here
# ================================================
# Optional Configuration
# ================================================
# CORS allowed origins (comma-separated for production)
# CORS_ORIGINS=https://yourdomain.com,https://www.yourdomain.com
# Rate limiting
# RATE_LIMIT_WINDOW_MS=900000
# RATE_LIMIT_MAX_REQUESTS=100
# Node environment
# NODE_ENV=development