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}
/> />
<div className="relative">
<MarkdownRenderer <MarkdownRenderer
className="text-foreground text-sm py-1.5" className="text-foreground text-sm py-1.5"
chatMessage={content} chatMessage={
isStreaming
? content +
' <span class="inline-block w-1 h-4 bg-primary ml-1 animate-pulse"></span>'
: content
}
/> />
{isStreaming && ( </div>
<span className="inline-block w-1 h-4 bg-primary ml-1 animate-pulse" />
)}
</Message> </Message>
); );
} }