Skip to content

Commit

Permalink
Update useConvaiClient.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
AirSurfer09 authored Jun 24, 2024
1 parent 05fc323 commit 4de6862
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/hooks/useConvaiClient.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export function useConvaiClient(characterId, apiKey) {
// enableEmotionalData : true,
});


convaiClient.current.setErrorCallback((type, message) => {
console.log(type, message);
})

convaiClient.current.setResponseCallback((response) => {
if (response.hasUserQuery()) {
var transcript = response.getUserQuery();
Expand Down Expand Up @@ -239,4 +242,4 @@ export function useConvaiClient(characterId, apiKey) {
};

return { client };
}
}

0 comments on commit 4de6862

Please sign in to comment.