-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
52 lines (45 loc) · 1.44 KB
/
.env.example
File metadata and controls
52 lines (45 loc) · 1.44 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
# 通义千问配置 (Tongyi Qianwen / Alibaba)
# 获取 API Key: https://bailian.console.aliyun.com/
API_KEY=sk-your-api-key-here
API_ENDPOINT=https://dashscope.aliyuncs.com/compatible-mode/v1
TEXT_MODEL=qwen-plus
# 图片生成服务选择
# 可选值: doubao 或 tongyi
# doubao: 支持组图生成,速度更快
# tongyi: 稳定可靠,wan2.6-t2i 模型质量高
IMAGE_SERVICE=doubao
# 豆包配置 (Doubao / Volcengine)
# 获取 API Key: https://console.volcengine.com/ark
ARK_API_KEY=ark-your-api-key-here
ARK_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
DOUBAO_IMAGE_MODEL=doubao-seedream-4-5-251128
# 通义千问图片模型配置
TONGYI_IMAGE_MODEL=wan2.6-t2i
# 图片尺寸配置
# 两个服务都支持自定义尺寸 (WIDTHxHEIGHT 格式)
#
# 尺寸限制说明:
# - 豆包:要求至少 3,686,400 像素(如 1920x1920)
# - wan2.6-t2i:要求 1280×1280 到 1440×1440 之间,宽高比 1:4 到 4:1
#
# 推荐尺寸(wan2.6-t2i 兼容):
# - 1104x1472 (3:4 竖版,推荐,适合绘本)
# - 1280x1280 (1:1 正方形,通义千问默认)
# - 960x1280 (3:4 竖版,通用)
#
# 仅豆包支持的大尺寸:
# - 1920x2560 (3:4 竖版,豆包推荐,高清绘本)
# - 2048x2730 (3:4 竖版,豆包超高清)
IMAGE_SIZE=1104x1472
# 应用配置
MAX_SCENES=30
MIN_SCENES=1
DEFAULT_SCENES=10
# PDF 配置
PDF_IMAGE_QUALITY=85
PDF_MAX_IMAGE_DIMENSION=1200
# 输出配置
OUTPUT_DIR=output
FONT_SIZE=24
PAGE_WIDTH=600
PAGE_HEIGHT=800