From a67481807b5711820402f8944cb04dbf2fea5e57 Mon Sep 17 00:00:00 2001 From: ymshenyu Date: Thu, 12 Dec 2024 10:23:42 +0800 Subject: [PATCH] chore: update asr.py --- api/core/tools/provider/builtin/azurespeech/tools/asr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/provider/builtin/azurespeech/tools/asr.py b/api/core/tools/provider/builtin/azurespeech/tools/asr.py index 42169a2c1216e3..0deff4d1f903d1 100644 --- a/api/core/tools/provider/builtin/azurespeech/tools/asr.py +++ b/api/core/tools/provider/builtin/azurespeech/tools/asr.py @@ -43,6 +43,6 @@ def _invoke(self, user_id: str, tool_parameters: dict[str, Any]) -> list[ToolInv ) return [ - self.create_text_message(data.get("combinedPhrases", [])[0].get("text", "")), + self.create_text_message(combinedPhrases[0].get("text", "")), self.create_json_message(data), ]