Skip to content

Commit

Permalink
chore: add more error messages for asr
Browse files Browse the repository at this point in the history
  • Loading branch information
ymshenyu committed Dec 11, 2024
1 parent a52cc58 commit 9c7cbbe
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 @@ -39,7 +39,7 @@ def _invoke(self, user_id: str, tool_parameters: dict[str, Any]) -> list[ToolInv
raise Exception(
"""No text detected.
Error: {}
Definition: {}""".format(json.dumps(data), definition)
Definition: {}""".format(json.dumps(data), files.get("definition", ""))
)

return [
Expand Down

0 comments on commit 9c7cbbe

Please sign in to comment.