-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
24 lines (20 loc) · 1.55 KB
/
Copy path.env.example
File metadata and controls
24 lines (20 loc) · 1.55 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
# ─── AI Service ───────────────────────────────────────────────────────────────
# BYOK (Bring Your Own Key) — 自行選擇 AI Provider
OPENAI_API_KEY=sk-...
OPENAI_BASE_URL=https://api.openai.com/v1 # or http://localhost:11434 for Ollama
OPENAI_MODEL=gpt-4o-mini
# 支持的 Provider:
# - OpenAI: OPENAI_BASE_URL=https://api.openai.com/v1
# - Anthropic: OPENAI_BASE_URL=https://api.anthropic.com/v1 (需另裝 anthropic package)
# - Ollama: OPENAI_BASE_URL=http://localhost:11434/v1
# - Groq: OPENAI_BASE_URL=https://api.groq.com/openai/v1
# - 其他 OpenAI-compatible API
# ─── Backend ──────────────────────────────────────────────────────────────────
# SQLite DB path (relative to backend/)
DATABASE_URL=openlearndb.db
# ─── Frontend ─────────────────────────────────────────────────────────────────
NEXT_PUBLIC_API_URL=http://localhost:8080
NEXT_PUBLIC_AI_URL=http://localhost:8000
# ─── Official Subscription (optional) ────────────────────────────────────────
# 官方訂閱模式使用的 Subscription Key 驗證服務
SUBSCRIPTION_VERIFY_URL=https://api.openlearn.ai/verify