feat: v2.1 BYOK + 自动流水线

- 统一为 DASHSCOPE_API_KEY(百炼 Key 通吃 LLM + Embedding)
- import-voc 后自动触发 UDE 转写 + 向量化(后台 asyncio task)
- 新增 GET /pipeline-status 查询流水线进度
- run_clustering 变纯 CPU(向量已预计算)
- 新增独立 run_vectorization 函数
- 修复 Python 3.9 类型注解兼容性
This commit is contained in:
2026-04-07 23:09:11 +08:00
parent 3cd7d4776d
commit f61c255b9d
4 changed files with 201 additions and 71 deletions
+13
View File
@@ -1,5 +1,18 @@
# 更新日志 (Changelog)
## v2.1.0 (2026-04-07)
### 🚀 功能 (Features)
- **BYOK(自带弹药)模式**:合伙人通过 `X-DashScope-Key` Header 传入百炼 Key,服务器不承担任何 Token 成本。百炼 Key 一个通吃 LLM 推理 + Embedding 向量化。
- **自动流水线**:`import-voc` 完成后自动异步触发 UDE 转写 + 向量化,无需 CoPaw Agent 逐步编排。
- **`GET /pipeline-status`**:新增流水线进度查询接口,支持 CoPaw 轮询。
- **聚类零调用**:`/ude/cluster` 变为纯 CPU 操作(毫秒级),向量已在流水线中预计算。
### 🛠️ 重构与优化 (Refactor & Optimization)
- ~~BAILIAN_API_KEY~~ 废弃,统一为 `DASHSCOPE_API_KEY`(两把钥匙取代三把)。
- 新增 `run_vectorization` 独立函数,从 `run_clustering` 中拆出向量化逻辑。
- `_get_llm_client` 默认直连百炼 API,移除 LiteLLM 代理依赖。
## v2.0.0 (2026-04-07)
### 🚀 功能 (Features)