查询模型映射只查询视频
This commit is contained in:
parent
1d0f80a035
commit
47640fa11a
@ -89,9 +89,6 @@ export default router.post(
|
|||||||
}
|
}
|
||||||
const artStyle = projectData?.artStyle || "无";
|
const artStyle = projectData?.artStyle || "无";
|
||||||
const visualManual = u.getArtPrompt(artStyle, "art_skills", "art_storyboard_video");
|
const visualManual = u.getArtPrompt(artStyle, "art_skills", "art_storyboard_video");
|
||||||
console.log("%c Line:99 🍧 storyboard", "background:#e41a6a", storyboard);
|
|
||||||
console.log("%c Line:97 🍣 assets", "background:#7f2b82", assets);
|
|
||||||
|
|
||||||
const content = `
|
const content = `
|
||||||
**模型名称**:${modelData},
|
**模型名称**:${modelData},
|
||||||
**资产信息**(角色、场景、道具):${assets
|
**资产信息**(角色、场景、道具):${assets
|
||||||
|
|||||||
@ -15,7 +15,7 @@ export default router.post("/", async (req, res) => {
|
|||||||
const promptMap = new Map(promptList.map((p) => [p.model, p.prompt]));
|
const promptMap = new Map(promptList.map((p) => [p.model, p.prompt]));
|
||||||
const models = await u.vendor.getModelList(item.id!);
|
const models = await u.vendor.getModelList(item.id!);
|
||||||
const filteredModels = models
|
const filteredModels = models
|
||||||
.filter((m: any) => m.type === "image" || m.type === "video")
|
.filter((m: any) => m.type === "video")
|
||||||
.map((m: any) => ({
|
.map((m: any) => ({
|
||||||
name: m.name,
|
name: m.name,
|
||||||
type: m.type as "image" | "video",
|
type: m.type as "image" | "video",
|
||||||
|
|||||||
37
src/types/database.d.ts
vendored
37
src/types/database.d.ts
vendored
@ -1,6 +1,37 @@
|
|||||||
// @db-hash 88c167ba73e2771e7b043419ca5089dd
|
// @db-hash 61fa5dc78f789e88edc7eeb51f55a1b7
|
||||||
//该文件由脚本自动生成,请勿手动修改
|
//该文件由脚本自动生成,请勿手动修改
|
||||||
|
|
||||||
|
export interface _o_project_old_20260404 {
|
||||||
|
'artStyle'?: string | null;
|
||||||
|
'createTime'?: number | null;
|
||||||
|
'directorManual'?: string | null;
|
||||||
|
'id'?: number | null;
|
||||||
|
'imageModel'?: string | null;
|
||||||
|
'imageQuality'?: string | null;
|
||||||
|
'intro'?: string | null;
|
||||||
|
'mode'?: string | null;
|
||||||
|
'name'?: string | null;
|
||||||
|
'projectType'?: string | null;
|
||||||
|
'type'?: string | null;
|
||||||
|
'userId'?: number | null;
|
||||||
|
'videoModel'?: string | null;
|
||||||
|
'videoRatio'?: string | null;
|
||||||
|
}
|
||||||
|
export interface _o_prompt_old_20260406 {
|
||||||
|
'data'?: string | null;
|
||||||
|
'id'?: number;
|
||||||
|
'name'?: string | null;
|
||||||
|
'type'?: string | null;
|
||||||
|
'useData'?: string | null;
|
||||||
|
}
|
||||||
|
export interface _o_prompt_old_20260406_1 {
|
||||||
|
'data'?: string | null;
|
||||||
|
'id'?: number;
|
||||||
|
'name'?: string | null;
|
||||||
|
'TEXT'?: any | null;
|
||||||
|
'type'?: string | null;
|
||||||
|
'useData'?: string | null;
|
||||||
|
}
|
||||||
export interface memories {
|
export interface memories {
|
||||||
'content': string;
|
'content': string;
|
||||||
'createTime': number;
|
'createTime': number;
|
||||||
@ -210,7 +241,6 @@ export interface o_user {
|
|||||||
'password'?: string | null;
|
'password'?: string | null;
|
||||||
}
|
}
|
||||||
export interface o_vendorConfig {
|
export interface o_vendorConfig {
|
||||||
'code'?: string | null;
|
|
||||||
'enable'?: number | null;
|
'enable'?: number | null;
|
||||||
'id'?: string;
|
'id'?: string;
|
||||||
'inputValues'?: string | null;
|
'inputValues'?: string | null;
|
||||||
@ -239,6 +269,9 @@ export interface o_videoTrack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface DB {
|
export interface DB {
|
||||||
|
"_o_project_old_20260404": _o_project_old_20260404;
|
||||||
|
"_o_prompt_old_20260406": _o_prompt_old_20260406;
|
||||||
|
"_o_prompt_old_20260406_1": _o_prompt_old_20260406_1;
|
||||||
"memories": memories;
|
"memories": memories;
|
||||||
"o_agentDeploy": o_agentDeploy;
|
"o_agentDeploy": o_agentDeploy;
|
||||||
"o_agentWorkData": o_agentWorkData;
|
"o_agentWorkData": o_agentWorkData;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user