fix: remove default model selection for audio tool (#10729)

This commit is contained in:
非法操作 2024-11-15 12:40:41 +08:00 committed by GitHub
parent 4b2abf8ac2
commit 2a5c5a4e15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -57,13 +57,12 @@ class ASRTool(BuiltinTool):
name="model", name="model",
label=I18nObject(en_US="Model", zh_Hans="Model"), label=I18nObject(en_US="Model", zh_Hans="Model"),
human_description=I18nObject( human_description=I18nObject(
en_US="All available ASR models", en_US="All available ASR models. You can config model in the Model Provider of Settings.",
zh_Hans="所有可用的 ASR 模型", zh_Hans="所有可用的 ASR 模型。你可以在设置中的模型供应商里配置。",
), ),
type=ToolParameter.ToolParameterType.SELECT, type=ToolParameter.ToolParameterType.SELECT,
form=ToolParameter.ToolParameterForm.FORM, form=ToolParameter.ToolParameterForm.FORM,
required=True, required=True,
default=options[0].value,
options=options, options=options,
) )
) )

View File

@ -77,13 +77,12 @@ class TTSTool(BuiltinTool):
name="model", name="model",
label=I18nObject(en_US="Model", zh_Hans="Model"), label=I18nObject(en_US="Model", zh_Hans="Model"),
human_description=I18nObject( human_description=I18nObject(
en_US="All available TTS models", en_US="All available TTS models. You can config model in the Model Provider of Settings.",
zh_Hans="所有可用的 TTS 模型", zh_Hans="所有可用的 TTS 模型。你可以在设置中的模型供应商里配置。",
), ),
type=ToolParameter.ToolParameterType.SELECT, type=ToolParameter.ToolParameterType.SELECT,
form=ToolParameter.ToolParameterForm.FORM, form=ToolParameter.ToolParameterForm.FORM,
required=True, required=True,
default=options[0].value,
options=options, options=options,
), ),
) )