Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikun213 committed Mar 5, 2024
1 parent 730f322 commit 628253c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/ConversationView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ const ConversationView = () => {
let formatedMessageList = []
for (let i = messageList.length - 1; i >= 0; i--) {
const message = messageList[i] as Message
const llmEvents = message.events.filter((event) => event.data_type === "llm")
formatedMessageList.unshift({
role: message.creatorRole,
content: `${message.content}`,
content: `${message.content}${llmEvents.map((event) => event.data).join("/n")}`,
})
}

Expand Down

0 comments on commit 628253c

Please sign in to comment.