assistant/.env.example

48 lines
2.0 KiB
Plaintext
Raw Permalink 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.

# 模型提供商: deepseek | qwen
LLM_PROVIDER=deepseek
# DeepSeek(https://platform.deepseek.com/)。真实 Key 请填本机 .env 或应用设置,不提交版本库。
DEEPSEEK_API_KEY=
# 2026-10-28 官方:deepseek-flash = DeepSeek-V4.1-Flash-1017,支持截图;deepseek-v4-pro 仅文本。
LLM_MODEL=deepseek-flash
LLM_BASE_URL=https://api.deepseek.com/v1
# 兜底 Key(可选):主 Key 返回 402 余额不足时后端自动切到它,之后每 LLM_PRIMARY_RETRY_HOURS 小时重试一次主 Key
# DEEPSEEK_API_KEY_FALLBACK=sk-backup-key
# DASHSCOPE_API_KEY_FALLBACK=sk-backup-key
# LLM_PRIMARY_RETRY_HOURS=1
# 千问 DashScope(LLM_PROVIDER=qwen 时使用)
# DASHSCOPE_API_KEY=sk-your-key-here
# LLM_MODEL=qwen-vl-max
# LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
# 后端 API 端口(与 Electron 读取 .env 一致,可随意改 unused 端口)
API_PORT=8788
# 拓客工作区标识(兼容历史 school_id 列名,与旧学校任务/经验隔离)
SCHOOL_ID=prospecting_workspace
# 维护模式:显示操作经验草稿及验证信息
OPERATOR_MODE=true
# learned 自动晋升门槛:同一条知识在多少个不同任务里出现即自动生效(仅控件技巧 / 入口路径类)
LEARNED_AUTO_VERIFY_MIN_OBS=2
# 原学校审批回查已退出当前拓客入口
TRACKING_ENABLED=false
TRACKING_POLL_SECONDS=60
# PostgreSQL(docker compose up -d 启动;保留原数据库名称,拓客数据按工作区隔离)
PG_HOST=127.0.0.1
PG_PORT=15433
PG_USER=assistant
PG_PASSWORD=assistant_dev_123
PG_DATABASE=school_assistant
# Electron 内嵌浏览器:远程调试端口与主进程控制接口端口(由 Electron 传给后端;后端单独运行时不需要)
CDP_PORT=9333
ELECTRON_CTRL_PORT=8797
# Search/Fetch 与 DeepSeek 使用同一把 Key,仅在任务勾选公开检索或主动使用资料工具时调用。
# 这些工具不携带内嵌浏览器的 Cookie,也不代表读取到小红书登录后的笔记或评论。