forked from BetaStreetOmnis/xhs_ai_publisher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
51 lines (43 loc) · 1.89 KB
/
Copy path.env.example
File metadata and controls
51 lines (43 loc) · 1.89 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
# Anthropic Claude API Configuration
ANTHROPIC_AUTH_TOKEN=
ANTHROPIC_API_KEY=
ANTHROPIC_BASE_URL=
# XHS Content LLM (OpenAI-compatible, Recommended)
# 适用于绝大多数“OpenAI 兼容”接口:GLM / 通义千问 / Kimi / 豆包 / 混元 / 本地等
# - BASE_URL 可填:base_url(如 .../v1、.../api/v3、.../api/paas/v4)或完整 .../chat/completions(程序会自动补全;请带 https://)
# - 默认只在“未在 UI 配置模型”时作为兜底;如需强制使用环境变量,可将 XHS_LLM_OVERRIDE=true
XHS_LLM_BASE_URL=
XHS_LLM_MODEL=
XHS_LLM_API_KEY=
XHS_LLM_OVERRIDE=false
# Optional: max tokens for the OpenAI-compatible endpoint (GLM-5 建议 >= 3200)
XHS_LLM_MAX_TOKENS=3200
# Optional: request timeout (seconds) for the OpenAI-compatible endpoint
XHS_LLM_TIMEOUT=120
# Generated Image Style (optional)
# 默认更“清爽”:不画白色内容卡片、不额外生成标签页
XHS_IMG_SHOW_TAGS=false
XHS_IMG_SHOW_CONTENT_CARD=false
XHS_IMG_BOXED_LIST_CARDS=false
# ZhipuAI / BigModel (GLM) API Configuration
# 推荐使用 ZHIPUAI_API_KEY;其余为兼容别名(任选其一即可)
ZHIPUAI_API_KEY=
BIGMODEL_API_KEY=
GLM_API_KEY=
# OpenAI-compatible API Configuration (optional)
OPENAI_API_KEY=
# UI-TARS model config (OpenAI-compatible)
UI_TARS_BASE_URL=
UI_TARS_API_KEY=
UI_TARS_MODEL=
# XHS browser session persistence
# Default: true. Uses a per-user Chrome profile under ~/.xhs_system/users/<id>/chrome_user_data
XHS_USE_PERSISTENT_CONTEXT=true
# Optional: reuse an existing Chrome profile (close Chrome first to avoid profile lock)
# macOS example: /Users/<you>/Library/Application Support/Google/Chrome
XHS_CHROME_USER_DATA_DIR=
# e.g. Default, Profile 1
XHS_CHROME_PROFILE_DIRECTORY=
# Safety: if you point XHS_CHROME_USER_DATA_DIR to your real Chrome profile, login() normally clears cookies.
# Keep this false unless you understand the impact.
XHS_ALLOW_CLEAR_COOKIES=false