-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.sample
More file actions
185 lines (158 loc) · 7.17 KB
/
Copy path.env.sample
File metadata and controls
185 lines (158 loc) · 7.17 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# ============================================================
# PromptForge 环境变量配置模板
# 复制此文件为 .env 并填入你的真实配置
# ============================================================
# ============================================================
# 生成模式配置
# ============================================================
# local: 使用本地 SD 模型(需配置 SD_MODEL_PATH)
# api: 使用云端 API(需配置 API_PROVIDER)
GENERATION_MODE=api
API_PROVIDER=agnes
# ============================================================
# 本地 SD 模型路径(仅 local 模式需要)
# ============================================================
# 如果自动检测失败,可以手动指定模型路径
# SD_MODEL_PATH=D:/SD_OpenVINO/models/sd-v1-5/your_model.safetensors
LORA_PATH=
VAE_PATH=
# ============================================================
# Agnes AI(免费,需注册)✅ 推荐
# 获取: https://platform.agnes-ai.com/
# ============================================================
AGNES_API_KEY=sk-your-agnes-api-key-here
AGNES_BASE_URL=https://apihub.agnes-ai.com/v1
# 备用路由(主路由不可用时自动切换)
# AGNES_BASE_URL=https://apihub.agnes-ai.cn/v1
# AGNES_BASE_URL=https://api.agnes-ai.cn/v1
# Agnes 模型配置(推荐使用最新 Flash 模型)
AGNES_IMAGE_MODEL=agnes-image-2.1-flash
AGNES_TEXT_MODEL=agnes-2.5-flash
AGNES_VIDEO_MODEL=agnes-video-2.5-flash
AGNES_VISION_MODEL=agnes-2.5-flash
# ============================================================
# Pollinations AI(完全免费,无需配置)
# ============================================================
POLLINATIONS_MODEL=flux
# ============================================================
# Free API(社区免费代理,稳定性较差)
# ============================================================
FREEAPI_MODEL=grok-imagine-image-lite
# ============================================================
# HuggingFace(免费,有限速)
# 获取 token: https://huggingface.co/settings/tokens
# ============================================================
HF_API_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HF_MODEL=sdxl
# ============================================================
# 通义万相(阿里云,按量付费)
# 获取: https://dashscope.console.aliyun.com/
# ============================================================
TONGYI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TONGYI_MODEL=wanx-v1
TONGYI_BASE_URL=
# ============================================================
# 文心一格(百度,按量付费)
# 获取: https://console.bce.baidu.com/ai/#/ai/yige/app/list
# ============================================================
YIGE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
YIGE_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# ============================================================
# 腾讯混元(按量付费)
# 获取: https://console.cloud.tencent.com/hunyuan
# ============================================================
HUNYUAN_SECRET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HUNYUAN_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# ============================================================
# Replicate API(按量付费,支持图生图)
# 获取: https://replicate.com/account/api-tokens
# ============================================================
REPLICATE_API_TOKEN=r8_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
REPLICATE_MODEL=stability-ai/stable-diffusion
# ============================================================
# Stability AI API(按量付费,支持图生图)
# 获取: https://platform.stability.ai/account/keys
# ============================================================
STABILITY_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
STABILITY_MODEL=stable-diffusion-xl-1024-v1-0
# ============================================================
# 视频生成配置
# ============================================================
# 单个视频分段长度(秒),Agnes API 支持 4-12 秒
VIDEO_SEGMENT_DURATION=10
# 是否启用自动循环拼接(将多个短片段合并成长视频)
VIDEO_AUTO_MERGE=true
# 目标视频总时长(秒),仅当 VIDEO_AUTO_MERGE=true 时生效
VIDEO_DURATION=60
# ============================================================
# Ollama 本地 LLM 配置(用于提示词增强和 AI 摘要)
# ============================================================
OLLAMA_HOST=http://localhost:11434
OLLAMA_MODEL=qwen2.5:1.5b
OLLAMA_TEMPERATURE=0.7
OLLAMA_MAX_TOKENS=200
OLLAMA_DYNAMIC_PROMPT_ENABLED=True
OLLAMA_NUM_PARALLEL=2
# ============================================================
# AI 图像鉴赏模式
# blip: 仅使用 BLIP 描述
# llm: BLIP + Ollama 润色(推荐)
# prompt: 仅返回提示词
# ============================================================
AI_APPRECIATION_ENGINE=llm
# ============================================================
# 默认生成参数
# ============================================================
DEFAULT_STEPS=20
DEFAULT_CFG=7.5
DEFAULT_STRENGTH=0.35
DEFAULT_WIDTH=512
DEFAULT_HEIGHT=768
# ============================================================
# 输出目录
# ============================================================
OUTPUT_DIR=./output
# ============================================================
# 安全设置
# ============================================================
# SAFE_MODE: 是否启用安全过滤(内容审查)
SAFE_MODE=true
# ENABLE_SAFETY_CHECK: 独立安全检测开关
# true = 启用完整安全检测(默认,推荐)
# false = 禁用安全检测(仅用于调试,不建议生产环境使用)
ENABLE_SAFETY_CHECK=true
# ============================================================
# 技术文章配图引擎 🤖
# ============================================================
# 可选值: agnes, pollinations, huggingface, stability, replicate, freeapi
# - agnes: 免费,推荐(需配置 AGNES_API_KEY)
# - pollinations: 完全免费,无需 API Key
# - huggingface: 免费有限速(需 HF_API_TOKEN)
# - stability: 按量付费(需 STABILITY_API_KEY)
# - replicate: 按量付费(需 REPLICATE_API_TOKEN)
# - freeapi: 社区免费代理,稳定性较差
ARTICLE_IMAGE_ENGINE=agnes
# ============================================================
# LLM 功能总开关
# ============================================================
LLM_ENABLED=true
# ============================================================
# 默认 LoRA(可选,用于本地模式)
# ============================================================
DEFAULT_LORA=MechaGirl_v1.safetensors
DEFAULT_LORA_WEIGHT=0.8
# ============================================================
# 新闻简报配置 📰
# ============================================================
NEWS_ENABLED=true
NEWS_OUTPUT_DIR=./output/news
# 新闻源分类(用逗号分隔)
# 可选: world, technology, business, science, health, entertainment, sports, china
NEWS_FEEDS=world,technology,business,china,science
# 每条新闻源最大抓取条数
NEWS_MAX_ARTICLES=15
NEWS_VALIDATE_FEEDS=true
NEWS_SUMMARY_MODEL=qwen2.5:1.5b
NEWS_ENABLE_SUMMARY=true
NEWS_CACHE_TTL=3600
NEWS_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36