feat(product-suite): improve multi-image AI writing

This commit is contained in:
chengma
2026-07-17 10:15:34 +08:00
parent fa97fa6d3c
commit 335c4b6206
7 changed files with 29 additions and 10 deletions
+5 -1
View File
@@ -3,7 +3,7 @@ id: T-647
title: 商品套图AI帮写改为同商品多图联合分析
phase: 7
deps: [T-645]
status: TODO
status: DONE
created: 2026-07-17
---
@@ -78,3 +78,7 @@ created: 2026-07-17
## 执行记录
- 2026-07-17:根据多原图同商品联合分析需求创建任务。待实现。
- 2026-07-17:更新 `ai._compose_product_suite_vision_prompt()`,将同一商品项目的多张原图明确为联合证据集,禁止图号式逐图输出;要求按任务语言输出商品概述、可确认卖点、适用人群与场景、套图画面要求、待确认或避免编造的信息五个独立段落,并保留可见差异和禁止编造约束。
- 2026-07-17:补充图片理解请求的一次请求、联合提示词契约测试;扩展商品套图 GUI 回归测试,确认即使原图勾选状态只选中其他图片,AI帮写仍按 `source_order` 使用前8张可用本地图。
- 2026-07-17:同步更新 `docs/04-architecture.md`、`docs/api.md`、`docs/routes.md` 的同商品多图联合理解语义。
- 验证通过:`py -3.10 -m unittest tests.test_ai tests.test_product_suite_gui tests.test_workers`(114 项)、`py -3.10 -m unittest discover -s tests`(568 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。