updateReferences({ minImages: value || 0 })} />
{
const maxImages = value || 0;
updateReferences({ maxImages, minImages: Math.min(profile.references.minImages, maxImages) });
}}
/>
updateReferences({ maxImageBytes: mbToBytes(value) })} />
updateReferences({ maxAudios: value || 0 })} />
updateReferences({ maxAudioBytes: mbToBytes(value) })} />
updateReferences({ maxAudioDurationSeconds: value || 0 })} />
update({ generateAudio })} />
updateReferences({ maxVideos: value || 0 })} />
updateReferences({ maxVideoBytes: mbToBytes(value) })} />
updateReferences({ maxVideoDurationSeconds: value || 0 })} />
updateReferences({ promptMaxChars: value || 1 })} />
update({ watermark })} />
);
}
if (section === "protocol") {
return (
视频能力参数
这些参数会同步到创造页、画布和生成校验
协议模板可继续调整
updateDuration(
value === "enum"
? { selection: "enum", values: profile.duration.values?.length ? profile.duration.values : [profile.duration.default] }
: { selection: "range", min: profile.duration.min || 1, max: profile.duration.max || 15, step: profile.duration.step || 1 },
)
}
/>
{profile.duration.selection === "enum" ? (
updateDuration({ values: parseIntegerList(event.target.value), default: parseIntegerList(event.target.value)[0] || profile.duration.default })}
/>
) : (
updateDuration({ min: value || 1 })} />
updateDuration({ max: value || 1 })} />
updateDuration({ step: value || 1 })} />
updateDuration({ default: value || 1 })} />
)}
{section === "all" ? (
updateReferences({ maxVideos: value || 0 })} />
updateReferences({ maxVideoBytes: mbToBytes(value) })} />
updateReferences({ maxVideoDurationSeconds: value || 0 })} />
) : null}
{section === "all" ? (
<>
updateReferences({ minImages: value || 0 })} />
{
const maxImages = value || 0;
updateReferences({ maxImages, minImages: Math.min(profile.references.minImages, maxImages) });
}}
/>
updateReferences({ maxImageBytes: mbToBytes(value) })} />
updateReferences({ maxAudios: value || 0 })} />
updateReferences({ maxAudioBytes: mbToBytes(value) })} />
updateReferences({ maxAudioDurationSeconds: value || 0 })} />
update({ generateAudio })} />
updateReferences({ promptMaxChars: value || 1 })} />
update({ watermark })} />
>
) : null}
);
}
function TextCapabilityEditor({ value, onChange, protocol, disabled, section }: Pick