- Video 控件(proportion/time/ParamGroup)改为 config 驱动,根据 API 参数 schema 动态渲染选项 - 模型选择器改用 UUID(m.id)作为内部标识,避免同名 display_name 冲突导致错误模型配置 - getModelId 查找优先级:id → name → display_name,向下兼容 - imageUploadLimit 累加所有 imageUpload 参数 maxCount,支持首尾帧等双图模型 - buildTaskBody 将 referenceImages 按索引映射到 imageUpload 参数名 - 新增 ParamGroup(动态参数容器)+ SwitchControl(纯 CSS 开关)共享组件 - modelConfigHelper 扩展 resolution/duration 同步支持 - Select 组件 dropdown-item 添加 flex-shrink:0 防止 flex 压缩 - dialogBox 支持 beforeModel 控件分组渲染
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"modelName": "LTX-2.3 图生视频",
|
|
"modelDescription": "RunningHub LTX-2.3 图生视频模型,基于图片生成视频",
|
|
"endpoint": "/rhart-video/ltx-2.3/image-to-video",
|
|
"params": [
|
|
{
|
|
"name": "imageUrl",
|
|
"ui": "imageUpload",
|
|
"label": "参考图片",
|
|
"maxCount": 1,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "prompt",
|
|
"ui": "textarea",
|
|
"label": "提示词",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "aspectRatio",
|
|
"ui": "proportion",
|
|
"label": "画面比例",
|
|
"default": "16:9",
|
|
"options": ["9:16", "16:9"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "resolution",
|
|
"ui": "resolution",
|
|
"label": "分辨率",
|
|
"default": "720p",
|
|
"options": ["480p", "720p", "1080p"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"ui": "select",
|
|
"label": "时长(秒)",
|
|
"default": 5,
|
|
"options": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
|
|
"required": true
|
|
}
|
|
],
|
|
"promptPlaceholder": "描述图片和期望的视频运动效果。",
|
|
"inputType": "image",
|
|
"maxImages": 1
|
|
}
|