added span to the markdown renderer on stream
This commit is contained in:
parent
1aac17aa3e
commit
28e22316cd
1 changed files with 11 additions and 7 deletions
|
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue