添加一个视频提示词
This commit is contained in:
parent
c641cee831
commit
6badeca75f
@ -355,6 +355,11 @@ description: 专注于从剧本内容中提取所使用的资产(角色、场
|
||||
- 场景中的固定陈设不需要单独提取为道具,除非该物件有独立剧情作用
|
||||
`,
|
||||
},
|
||||
{
|
||||
name: "视频提示词生成",
|
||||
type: "videoPromptGeneration",
|
||||
data: "根据以下提示词生成一个视频提示词",
|
||||
},
|
||||
]);
|
||||
},
|
||||
},
|
||||
|
||||
@ -17,10 +17,11 @@ export default router.post(
|
||||
const { trackId, projectId, prompt, model } = req.body;
|
||||
const [id, modelData] = model.split(":");
|
||||
const projectData = await u.db("o_project").select("*").where({ id: projectId }).first();
|
||||
const videoPrompt = await u.db("o_prompt").where("type", "videoPromptGeneration").first();
|
||||
const artStyle = projectData?.artStyle || "无";
|
||||
const visualManual = u.getArtPrompt(artStyle, "art_storyboard_video");
|
||||
const { text } = await u.Ai.Text("universalAi").invoke({
|
||||
system: visualManual,
|
||||
system: `${videoPrompt?.data},${visualManual}`,
|
||||
messages: [
|
||||
{
|
||||
role: "user",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user