Skip to content

Commit

Permalink
chore: update asr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ymshenyu committed Dec 24, 2024
1 parent 391a80f commit a674818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/provider/builtin/azurespeech/tools/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]

0 comments on commit a674818

Please sign in to comment.