Files
ai_site/.env.example
2026-07-31 10:31:17 +08:00

40 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# copy to .env and fill keys
# 供应商列表 / 默认模型见 ai-service/etc/llm.yaml勿在代码里改
LLM_PROVIDER=deepseek
DEEPSEEK_API_KEY=
MINIMAX_API_KEY=
# 视觉(可选;默认读 llm.yaml 的 vision 段,也可用环境变量覆盖)
VISION_PROVIDER=dashscope
DASHSCOPE_API_KEY=
DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
VISION_MODEL=qwen3.6-plus
# AI_CONFIG_PATH=/app/etc/llm.yaml
# 有截图时:视觉摘录 → 代码出蓝图 → 发布并截真页面 → 对比打分 → 再改,直到 ≥ FIDELITY_TARGET
FIDELITY_LOOP=1
FIDELITY_TARGET=95
FIDELITY_MAX_ROUNDS=4
FIDELITY_REAL_SCREEN=1
PLATFORM_BASE=http://127.0.0.1:8180
WEB_BASE=http://127.0.0.1:5173
FIDELITY_USER=demo
FIDELITY_PASSWORD=demo123
# FIDELITY_SHOT_DIR=E:/project/ai建站/test/_out
# ---- 同机 Docker 端口(默认绑 127.0.0.1,避开 yh_web 的 8088/9080/9081 与宿主机 80/443----
# AIJZ_WEB_PUBLISH=127.0.0.1:5173
# AIJZ_GATEWAY_PUBLISH=127.0.0.1:8180
# AIJZ_PLATFORM_PUBLISH=127.0.0.1:8888
# AIJZ_AI_PUBLISH=127.0.0.1:8001
# AIJZ_PG_PUBLISH=127.0.0.1:5432
# 宿主机已有 Postgres 时改为AIJZ_PG_PUBLISH=127.0.0.1:15432
# 需要局域网直连时改为AIJZ_WEB_PUBLISH=0.0.0.0:5173
# ---- 对外域名(可选;与同机 yh_web 并存时用不同域名)----
# AIJZ_ENABLE_HOST_NGINX=1
# AIJZ_DOMAIN=aijz.example.com
# AIJZ_PUBLIC_BASE_URL=https://aijz.example.com
# 证书放 nginx/<域名>.pem + nginx/<域名>.key或 nginx/fullchain.pem + privkey.pem
# 改配置后:自行 reload 对应服务 / 容器(本机运维脚本不入库)