From 2a5c5a4e151e5ac3893e62da4a3d02f22d1dfad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Fri, 15 Nov 2024 12:40:41 +0800 Subject: [PATCH] fix: remove default model selection for audio tool (#10729) --- api/core/tools/provider/builtin/audio/tools/asr.py | 5 ++--- api/core/tools/provider/builtin/audio/tools/tts.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/api/core/tools/provider/builtin/audio/tools/asr.py b/api/core/tools/provider/builtin/audio/tools/asr.py index d1a3a81881..2aa409cd1a 100644 --- a/api/core/tools/provider/builtin/audio/tools/asr.py +++ b/api/core/tools/provider/builtin/audio/tools/asr.py @@ -57,13 +57,12 @@ class ASRTool(BuiltinTool): name="model", label=I18nObject(en_US="Model", zh_Hans="Model"), human_description=I18nObject( - en_US="All available ASR models", - zh_Hans="所有可用的 ASR 模型", + en_US="All available ASR models. You can config model in the Model Provider of Settings.", + zh_Hans="所有可用的 ASR 模型。你可以在设置中的模型供应商里配置。", ), type=ToolParameter.ToolParameterType.SELECT, form=ToolParameter.ToolParameterForm.FORM, required=True, - default=options[0].value, options=options, ) ) diff --git a/api/core/tools/provider/builtin/audio/tools/tts.py b/api/core/tools/provider/builtin/audio/tools/tts.py index fb7213dee7..f83a64d041 100644 --- a/api/core/tools/provider/builtin/audio/tools/tts.py +++ b/api/core/tools/provider/builtin/audio/tools/tts.py @@ -77,13 +77,12 @@ class TTSTool(BuiltinTool): name="model", label=I18nObject(en_US="Model", zh_Hans="Model"), human_description=I18nObject( - en_US="All available TTS models", - zh_Hans="所有可用的 TTS 模型", + en_US="All available TTS models. You can config model in the Model Provider of Settings.", + zh_Hans="所有可用的 TTS 模型。你可以在设置中的模型供应商里配置。", ), type=ToolParameter.ToolParameterType.SELECT, form=ToolParameter.ToolParameterForm.FORM, required=True, - default=options[0].value, options=options, ), )