mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: remove default model selection for audio tool (#10729)
This commit is contained in:
parent
4b2abf8ac2
commit
2a5c5a4e15
|
@ -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,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -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,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user