added span to the markdown renderer on stream

This commit is contained in:
Lucas Oliveira 2025-10-20 18:43:12 -03:00 committed by Mike Fortman
parent 1aac17aa3e
commit 28e22316cd

View file

@ -51,13 +51,17 @@ export function AssistantMessage({
expandedFunctionCalls={expandedFunctionCalls} expandedFunctionCalls={expandedFunctionCalls}
onToggle={onToggle} onToggle={onToggle}
/> />
<MarkdownRenderer <div className="relative">
className="text-foreground text-sm py-1.5" <MarkdownRenderer
chatMessage={content} className="text-foreground text-sm py-1.5"
/> chatMessage={
{isStreaming && ( isStreaming
<span className="inline-block w-1 h-4 bg-primary ml-1 animate-pulse" /> ? content +
)} ' <span class="inline-block w-1 h-4 bg-primary ml-1 animate-pulse"></span>'
: content
}
/>
</div>
</Message> </Message>
); );
} }