feat(params): add initialization attributes to lock task_type field

This commit is contained in:
yxf
2026-06-09 16:30:35 +08:00
committed by jialin
parent 26ce456bde
commit dd542a9f29
@@ -9,6 +9,11 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
attrs: {
allowClear: true
},
initAttrs: (meta: any) => ({
// Single-task TTS checkpoints (e.g. Qwen3-TTS) expose a fixed task_type;
// lock the field so a mismatched value can't crash the vllm engine.
disabled: !!meta?.task_type
}),
label: {
text: 'playground.params.taskType',
isLocalized: true