fix: tts default params

This commit is contained in:
jialin
2026-01-31 14:39:44 +08:00
parent 8d660b20aa
commit f803b910b5
6 changed files with 8 additions and 8 deletions
+4 -3
View File
@@ -45,10 +45,10 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
]
},
{
type: 'AutoComplete',
type: 'Input',
name: 'instructions',
label: {
text: 'playground.params.voiceStyle',
text: 'playground.params.instructions',
isLocalized: true
},
attrs: {
@@ -78,7 +78,8 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
attrs: {
allowClear: true,
step: 1,
min: 0
min: 0,
max: 4096
},
formItemAttrs: {
getValueProps: (value: number) => {
@@ -264,7 +264,6 @@ const GroundTTS: React.FC<MessageProps> = forwardRef((props, ref) => {
...pre,
..._.pick(model?.meta || {}, MetaFields),
task_type: model?.meta?.task_type,
max_new_tokens: model?.meta?.max_model_len || null,
model: value,
voice: newList[0]?.value
};