修复外部图片接口绕过场景合同
Project CI / Repository checks (pull_request) Failing after 44s
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled

统一主站与外部图片生成的场景边界校验
新增场景伪装请求零入队回归测试
同步外部OpenAPI、Skill与场景技术文档
This commit is contained in:
2026-08-06 20:17:52 +08:00
parent 0620f64348
commit 0bbe910d69
10 changed files with 184 additions and 16 deletions
@@ -83,7 +83,7 @@ assetLabel?
canvasCompletion?
```
请求不接受前端组装后的完整 `prompt`。通用 `/api/editor/images/generations` 也必须拒绝 `kind = scene` 或 `assetKind = scene`,防止调用方绕过结构化字段校验和后端 Prompt 组装。本期不修改 `/api/external/v1`。
请求不接受前端组装后的完整 `prompt`。通用 `/api/editor/images/generations` 与 `/api/external/v1/editor/images/generations` 共用同一边界校验,均拒绝 `kind = scene` 或 `assetKind = scene`,防止调用方绕过结构化字段校验和后端 Prompt 组装。External v1 当前没有场景专用路由,因此不能通过通用图片接口提交结构化场景;主站 `/api/editor/scenes/generations` 构造规范请求后直接复用队列,不经过通用入口校验。
完整 Provider Prompt 仍只能由后端生成。