Skip to content

Commit

Permalink
Merge pull request #214 from MyLife-Services/213-hotfix-q-conversation
Browse files Browse the repository at this point in the history
20240521 @Mookse
  • Loading branch information
Mookse authored May 21, 2024
2 parents cb9644e + 870bcc6 commit 8dc3210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/js/mylife-avatar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ class Avatar extends EventEmitter {
*/
async chatRequest(activeBotId, threadId, chatMessage){
const processStartTime = Date.now()
if(this.isMyLife){ /* MyLife chat request hasn't supplied basics to front-end yet */
activeBotId = this.activeBot.id
threadId = this.activeBot.thread_id
}
if(!chatMessage)
throw new Error('No message provided in context')
if(!activeBotId)
Expand Down

0 comments on commit 8dc3210

Please sign in to comment.