-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
27 lines (23 loc) · 1.11 KB
/
Copy path.env.example
File metadata and controls
27 lines (23 loc) · 1.11 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
# ===== stylewx 环境变量 =====
# 复制为 .env 并填写真实值。所有凭据只从环境读取,绝不写入代码/仓库。
# ---- 微信公众号(publish_draft 需要)----
# 公众号 AppID / AppSecret(在 公众平台 → 开发 → 基本配置 获取)
WECHAT_APP_ID=
WECHAT_APP_SECRET=
# 可选:微信 API 基地址(默认 https://api.weixin.qq.com)
WECHAT_API_BASE=https://api.weixin.qq.com
# ---- LLM(generate_theme 需要)----
# OpenAI 兼容接口地址。opencode go 用 https://opencode.ai/zen/go/v1(需 LLM_API_STYLE=responses)
LLM_BASE_URL=https://api.openai.com/v1
LLM_API_KEY=
LLM_MODEL=gpt-4o-mini
# 端点风格:chat=/chat/completions(默认);responses=/responses(opencode go 用)
LLM_API_STYLE=chat
# ---- REST API ----
# API 监听端口(默认 3001)
PORT=3001
# ---- 文章目录 ----
# 本地编辑器的文章读写根目录(默认取启动时的当前工作目录,即仓根)。
# stylewx-editor.bat 已默认指向 <repo>/articles,通常不用在这里重复设置;
# 自己用 node 启动时才需要。
# STYLEWX_ARTICLES_DIR=B:\wechat_editer\articles