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), ]