- 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 控件分组渲染
41 lines
958 B
JSON
41 lines
958 B
JSON
{
|
||
"modelName": "LTX-2.3 文生视频",
|
||
"modelDescription": "RunningHub LTX-2.3 文生视频模型(Text-to-Video),基于文本生成视频",
|
||
"endpoint": "/rhart-video/ltx-2.3/text-to-video",
|
||
"params": [
|
||
{
|
||
"name": "prompt",
|
||
"ui": "textarea",
|
||
"label": "提示词",
|
||
"required": true
|
||
},
|
||
{
|
||
"name": "resolution",
|
||
"ui": "select",
|
||
"label": "分辨率",
|
||
"default": "720p",
|
||
"options": ["1080p", "720p", "480p"],
|
||
"required": true
|
||
},
|
||
{
|
||
"name": "aspectRatio",
|
||
"ui": "proportion",
|
||
"label": "画面比例",
|
||
"default": "16:9",
|
||
"options": ["16:9", "9:16"],
|
||
"required": true
|
||
},
|
||
{
|
||
"name": "duration",
|
||
"ui": "number",
|
||
"label": "时长(秒)",
|
||
"default": 5,
|
||
"min": 5,
|
||
"max": 15,
|
||
"required": true
|
||
}
|
||
],
|
||
"promptPlaceholder": "描述你想生成的画面和动作。",
|
||
"inputType": "text"
|
||
}
|