🪙 fix: Streaming Response Token Issue (#3323)

* chore: use NEW_CONVO constant

* fix: token object assign issue
This commit is contained in:
Danny Avila 2024-07-10 23:41:21 -04:00 committed by GitHub
parent 326069d7a6
commit 5ef71a7a36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 5 additions and 7 deletions

View file

@ -107,7 +107,7 @@ export default function useChatFunctions({
const intermediateId = overrideUserMessageId ?? v4();
parentMessageId = parentMessageId || latestMessage?.messageId || Constants.NO_PARENT;
if (conversationId == 'new') {
if (conversationId == Constants.NEW_CONVO) {
parentMessageId = Constants.NO_PARENT;
currentMessages = [];
conversationId = null;