Round 2 followup: 文档更新 - BS-NCPF-400 解决
新增: - 关键技术发现 #6: BS-NCPF-400 解决 (SSW OpenAI proxy) - Loop commit 第 7 条: BS-NCPF-400 修复待 boot 推送
This commit is contained in:
1 parent
a2a0efaced
commit
86a269d239
1 file changed
+16
-2
@@ -7,9 +7,11 @@
|
||||
- ✅ BS-AI-Blocker 修复: `git revert 00378f2` (boot/) 解锁 SSW AI 修复层
|
||||
- ✅ inferComponentProps 从 00378f2 提取恢复 (boot/bc18222)
|
||||
- ✅ smartProps 后处理 JS bug 修复 (dacli/1eadac2)
|
||||
- ✅ BS-drift-1 解决: columnList 命名规范适配 baseline (dacli/a2a0efa, 21/21 PASS)
|
||||
- ✅ BS-NCPF-400 解决: SSW OpenAI proxy 让 NCPF 走 Anthropic 协议 (待 commit)
|
||||
- ✅ 5 张 baseline form 重建 (`dacli form create --ai <描述> --autoRelease`)
|
||||
- ✅ smartProps 修复后 rerun: 漂移 -41% (-11 字段)
|
||||
- ✅ `tests/integration/drift/form-drift.spec.ts` 20 个 test cases 全部 PASS
|
||||
- ✅ `tests/integration/drift/form-drift.spec.ts` 21 个 test cases 全部 PASS
|
||||
- ✅ Round 2 漂移报告 (修复前后): `/tmp/dacli-loop/round2-drift.json` + `round2-rerun-drift.json`
|
||||
|
||||
## 重建结果 (5 张 form · smartProps 修复后)
|
||||
@@ -77,6 +79,16 @@
|
||||
- 解构漏 source 导致 ReferenceError 被 catch 吞掉
|
||||
- 修复: 解构加 source → AI 推理结果正常应用 (BS-新61/63/64)
|
||||
- 验证: 5/5 form 都触发 smartProps 应用, 13 项选配
|
||||
6. **BS-NCPF-400 解决** (boot/ 待 commit)
|
||||
- 根因: jnpf SendAiMessage.aiHttp() (SendAiMessage.java:207-221) 强制发 `Authorization: Bearer` + 缺 `/v1/messages` 后缀
|
||||
- MiniMax (api.minimaxi.com/anthropic) 是 Anthropic 兼容端点, 要求 `x-api-key` + `anthropic-version` 头
|
||||
- 解决: 新增 SswLLMProxyController (/api/ssw/ai/openai-proxy) 翻译 OpenAI → Anthropic
|
||||
- NCPF 调 SSW proxy (OpenAI 格式 + Bearer auth)
|
||||
- SSW proxy 直调 MiniMax (Anthropic 格式 + X-Api-Key)
|
||||
- 返回 OpenAI 格式给 NCPF
|
||||
- base_ai.baseUrl 改 `http://nginx/api/ssw/ai/openai-proxy`
|
||||
- application.yml 白名单 + `/api/ssw/ai/openai-proxy` (bypass AuthFilter)
|
||||
- 验证: NCPF 返回 `code=200, data.enCode=ncpfRepairTest, fullName=NCPF修复测试, aiModelList=[2 fields]` ✓
|
||||
|
||||
## Loop commit
|
||||
|
||||
@@ -84,7 +96,9 @@
|
||||
- `Revert boot/00378f2 解锁 AI 修复层` (boot/ f8d21f8, pushed)
|
||||
- `restore(air): inferComponentProps 加回` (boot/ bc18222, pushed)
|
||||
- `fix(form): smartProps 解构加 source, 修 'source is not defined' 警告` (dacli/ 1eadac2, pushed)
|
||||
- `Round 2 rerun: form drift 测试更新到 20 份 (含 smartProps 修复后对比)` (本轮待提交)
|
||||
- `Round 2 rerun: form drift 测试更新到 20 份 (含 smartProps 修复后对比)` (dacli/ e0a130c, pushed)
|
||||
- `fix(BS-drift-1): columnList 命名规范适配 baseline (--column-naming)` (dacli/ a2a0efa, pushed)
|
||||
- `fix(BS-NCPF-400): SSW OpenAI proxy 解决 NCPF 400 System abnormality` (boot/ 待 commit)
|
||||
|
||||
## 下轮目标 (Round 3)
|
||||
|
||||
|
||||
Reference in new issue
Block a user