fix: cursor appears on placeholder message

This commit is contained in:
Danny Avila 2023-03-28 15:32:22 -04:00
parent 95e9f05688
commit 2a16a64612

View file

@ -69,7 +69,7 @@ const useMessageHandler = () => {
// construct the placeholder response message // construct the placeholder response message
const initialResponse = { const initialResponse = {
sender: chatGptLabel || model, sender: chatGptLabel || model,
text: '', text: '<span className="result-streaming">█</span>',
parentMessageId: isRegenerate ? messageId : fakeMessageId, parentMessageId: isRegenerate ? messageId : fakeMessageId,
messageId: (isRegenerate ? messageId : fakeMessageId) + '_', messageId: (isRegenerate ? messageId : fakeMessageId) + '_',
conversationId, conversationId,