Add chat output responses to chatMessages
This commit is contained in:
parent
83e1dc1b4f
commit
0b53d36e76
1 changed files with 7 additions and 0 deletions
|
|
@ -49,6 +49,13 @@ export default function newChatView(): JSX.Element {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
inputIds.forEach((inputId) => {
|
||||||
|
if (inputId.includes("ChatInput")) {
|
||||||
|
if (flowPool[inputId] && flowPool[inputId].length > 0) {
|
||||||
|
chatOutputResponses.push(...flowPool[inputId]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
const chatMessages: ChatMessageType[] = chatOutputResponses
|
const chatMessages: ChatMessageType[] = chatOutputResponses
|
||||||
.sort((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp))
|
.sort((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp))
|
||||||
.filter((output) => !!output.data.artifacts.message)
|
.filter((output) => !!output.data.artifacts.message)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue