-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
78 lines (68 loc) · 3.13 KB
/
Copy path.env.example
File metadata and controls
78 lines (68 loc) · 3.13 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
# ============================================================
# LayerForge .env 配置示例
# 复制此文件为 .env 并填入你的配置
# ============================================================
# ============================================================
# 本地 SD 模型路径(可选,自动检测)
# ============================================================
# 如果自动检测失败,可以手动指定模型路径
# SD_MODEL_PATH=D:/SD_OpenVINO/models/sd-v1-5/anytimeRealistic_v10.safetensors
# ============================================================
# 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
# ============================================================
# 文心一格 (百度)
# 获取: 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
# ============================================================
# Agnes AI (免费,需注册)
# 获取: https://apihub.agnes-ai.com
# ============================================================
AGNES_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AGNES_IMAGE_MODEL=agnes-image-2.1-flash
AGNES_TEXT_MODEL=agnes-text-2.1-flash
AGNES_VIDEO_MODEL=agnes-video-2.1-flash
AGNES_VISION_MODEL=agnes-vision-2.1-flash
AGNES_BASE_URL=https://apihub.agnes-ai.com/v1
# ============================================================
# Pollinations AI (完全免费,无需配置)
# 无需 API Key,直接使用
# ============================================================
POLLINATIONS_MODEL=flux
# ============================================================
# Free API (社区免费代理,无需配置)
# 不推荐使用,稳定性较差
# ============================================================
FREEAPI_MODEL=grok-imagine-image-lite
# ============================================================
# Ollama 配置 (用于动态提示词和 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
# ============================================================
# AI 图像鉴赏模式
# blip: 仅使用 BLIP 描述
# llm: BLIP + Ollama 润色 (推荐)
# prompt: 仅返回提示词
# ============================================================
AI_APPRECIATION_ENGINE=llm