- 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 控件分组渲染
40 lines
948 B
JSON
40 lines
948 B
JSON
{
|
|
"modelName": "海螺 02-fast 图生视频",
|
|
"modelDescription": "RunningHub MiniMax 海螺 02-fast 图生视频模型,基于参考图生成快节奏电影感动画",
|
|
"endpoint": "/minimax/hailuo-02/fast",
|
|
"params": [
|
|
{
|
|
"name": "prompt",
|
|
"ui": "textarea",
|
|
"label": "提示词",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "enablePromptExpansion",
|
|
"ui": "switch",
|
|
"label": "提示词扩展",
|
|
"default": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "imageUrl",
|
|
"ui": "imageUpload",
|
|
"label": "参考图片",
|
|
"maxCount": 1,
|
|
"required": true,
|
|
"maxSizeMB": 10
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"ui": "select",
|
|
"label": "时长(秒)",
|
|
"default": "6",
|
|
"options": ["6", "10"],
|
|
"required": true
|
|
}
|
|
],
|
|
"promptPlaceholder": "描述基于原图的动画效果(可选)。",
|
|
"inputType": "image",
|
|
"maxImages": 1
|
|
}
|