AI任务参数级技能挂载:/api/run支持skills参数写入automations.skills_json,前端创作/复盘/分镜/提炼按钮按技能名传参

This commit is contained in:
maogeigei committed 2026-09-01 16:31:40 +08:00
1 parent ef98395c61
commit f459abe2f2
7 files changed
+164 -5

No files matched your search

@@ -95,7 +95,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const resp = await fetch(API, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ prompt: t.prompt, name: '创作指令' }),
body: JSON.stringify({ prompt: t.prompt, name: '创作指令', skills: ['短视频脚本创作'] }),
});
const d = await resp.json();
results.push({ videoId: t.videoId, id: d.id, ok: d.ok, error: d.error });