refactor: v2.0 完全解耦 — 阿里云内闭环

- 删除 VOC_DATA_DIR / get_voc_conn(不再跨云直读 SQLite)
- 案例 DB 自带 comments 表,自包含所有数据
- 新增 POST /import-voc:通过 VOC 公网 API 导入评论
- VOC_API_BASE 环境变量控制 API 地址
- 新增 httpx 依赖
This commit is contained in:
2026-04-07 19:47:34 +08:00
parent ec8eaa0b36
commit c5e2a58258
5 changed files with 194 additions and 191 deletions
+14 -8
View File
@@ -1,13 +1,19 @@
# LLM(通过 LiteLLM 网关)
# 黑手党提案后端 v2.0 — 环境变量
# 完全独立,阿里云内闭环
# VOC 公网 API(跨云只读访问,用于 import-voc)
VOC_API_BASE=https://brand.brainwork.club/voc/api/research
# LLM 路由(走同机 LiteLLM
LITELLM_PROXY_URL=http://127.0.0.1:4000/v1
LITELLM_MASTER_KEY=
LITELLM_MASTER_KEY=sk-xxx
# 模型
MODEL_ID=qwen-plus
TEMPERATURE=0.1
# 向量化(DashScope text-embedding-v4
DASHSCOPE_API_KEY=
# DashScope(向量化用
DASHSCOPE_API_KEY=sk-xxx
# 共享 VOC 数据层
VOC_DATA_DIR=/opt/apps/voc-researcher/data
# 服务
# 端口
PORT=8093