Skip to content

Commit

Permalink
enable audio response with exec funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudz committed Jul 23, 2024
1 parent bba89c5 commit f71c278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/AiAssistantEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class AiAssistantEngine extends EventEmitter {
}

// --------[ Step 2: Display AI Text Reply ]--------
// Handle text response last
// Handle text response. This is useful for debugging
if (response.data.outputTextReply) {
this._handleTextResponse(response.data.outputTextReply);
}
Expand All @@ -280,7 +280,7 @@ class AiAssistantEngine extends EventEmitter {
this._handleExecutableFunctionsResponse(
response.data.outputExecutableFunctions,
);
return; // No need to process further if functions are executed
// return; // No need to process further if functions are executed
}

// --------[ Step 4: Play AI Audio Reply ]--------
Expand Down

0 comments on commit f71c278

Please sign in to comment.