Skip to content

Commit

Permalink
fix: add username to chat history tracking (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix authored Dec 4, 2024
1 parent f6aaec7 commit 932c050
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,10 @@ class ChatLLM {
// if we're tracking, log the data
if (constants.canTrack) {
let chatHist = chatLLM.CopyChatHistory();
tracker.SetData('ChatHistory', { chatHistory: chatHist });
let data = {};
data.chatHistory = chatHist;
if (constants.emailAuthKey) data.username = constants.emailAuthKey;
tracker.SetData('ChatHistory', data);
}
}

Expand Down

0 comments on commit 932c050

Please sign in to comment.