- 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 控件分组渲染
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"modelName": "Vidu 文生视频 q3-turbo",
|
|
"modelDescription": "RunningHub Vidu 文生视频 q3-turbo 模型,支持音视频直出",
|
|
"endpoint": "/vidu/text-to-video-q3-turbo",
|
|
"params": [
|
|
{
|
|
"name": "prompt",
|
|
"ui": "textarea",
|
|
"label": "提示词",
|
|
"required": true,
|
|
"maxLength": 4000
|
|
},
|
|
{
|
|
"name": "style",
|
|
"ui": "select",
|
|
"label": "风格",
|
|
"default": "general",
|
|
"options": ["general", "anime"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "aspectRatio",
|
|
"ui": "proportion",
|
|
"label": "画面比例",
|
|
"default": "16:9",
|
|
"options": ["4:3", "3:4", "16:9", "9:16", "1:1"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "resolution",
|
|
"ui": "resolution",
|
|
"label": "分辨率",
|
|
"default": "720p",
|
|
"options": ["540p", "720p", "1080p"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"ui": "select",
|
|
"label": "时长(秒)",
|
|
"default": "5",
|
|
"options": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "audio",
|
|
"ui": "switch",
|
|
"label": "音频直出",
|
|
"default": true,
|
|
"required": true
|
|
}
|
|
],
|
|
"promptPlaceholder": "描述你想生成的视频画面和音频。文本长度限制 1-4000。",
|
|
"inputType": "text"
|
|
}
|