From dd542a9f294e5e7692f25a6aa1ae6b7dd992da28 Mon Sep 17 00:00:00 2001 From: yxf Date: Tue, 9 Jun 2026 16:20:26 +0800 Subject: [PATCH] feat(params): add initialization attributes to lock task_type field --- src/pages/playground/speech/params-config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/playground/speech/params-config.ts b/src/pages/playground/speech/params-config.ts index 5619a7e0..8b4ca97f 100644 --- a/src/pages/playground/speech/params-config.ts +++ b/src/pages/playground/speech/params-config.ts @@ -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