This commit is contained in:
Andrew Pareles 2025-03-17 02:47:11 -07:00
parent 46db2c6e95
commit 8ef693b218

View file

@ -1654,7 +1654,12 @@ const toolNameToComponent: { [T in ToolName]: {
type ChatBubbleMode = 'display' | 'edit'
type ChatBubbleProps = { chatMessage: ChatMessage, messageIdx: number, isCommitted: boolean, isLast: boolean }
type ChatBubbleProps = {
chatMessage: ChatMessage,
messageIdx: number,
isCommitted: boolean,
isLast: boolean, // includes the streaming message (if streaming, isLast is false except for the streaming message)
}
const ChatBubble = ({ chatMessage, isCommitted, messageIdx, isLast }: ChatBubbleProps) => {
const role = chatMessage.role