Skip to content

Commit

Permalink
fix: remove default model selection for audio tool (#10729)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored Nov 15, 2024
1 parent 4b2abf8 commit 2a5c5a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions api/core/tools/provider/builtin/audio/tools/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ def get_runtime_parameters(self) -> list[ToolParameter]:
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,
)
)
Expand Down
5 changes: 2 additions & 3 deletions api/core/tools/provider/builtin/audio/tools/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,12 @@ def get_runtime_parameters(self) -> list[ToolParameter]:
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,
),
)
Expand Down

0 comments on commit 2a5c5a4

Please sign in to comment.