-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.env.example
More file actions
28 lines (23 loc) · 1.51 KB
/
Copy path.env.example
File metadata and controls
28 lines (23 loc) · 1.51 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
# ─────────────────────────────────────────────────────────────
# Alpha 环境变量示例 — 拷贝为 .env 后按需修改
# cp .env.example .env
# ─────────────────────────────────────────────────────────────
# ─── LLM 配置(三选一)──────────────────────────────────────
# 方案 A(推荐本地):Ollama + OpenAI 兼容端点
# 启动 Ollama:`ollama serve` / 拉模型 `ollama pull qwen2.5:7b`
OPENAI_API_KEY=ollama
OPENAI_BASE_URL=http://127.0.0.1:11434/v1
HERMES_MODEL=qwen2.5:7b
# 方案 B:OpenAI 官方
# OPENAI_API_KEY=sk-xxxxxxxx
# OPENAI_BASE_URL=https://api.openai.com/v1
# HERMES_MODEL=gpt-4o-mini
# 方案 C:独立 hermes-agent API Server(如已部署)
# HERMES_AGENT_URL=http://127.0.0.1:8642/v1
# API_SERVER_KEY=your_api_server_bearer_token
# ─── 通知 ────────────────────────────────────────────────
# FEISHU_WEBHOOK_URL=https://open.larksuite.com/open-apis/bot/v2/hook/xxx
# ─── 服务 ────────────────────────────────────────────────
PORT=18888
HOST=0.0.0.0
RELOAD=0