Fix message parameter type in newChatView component
This commit is contained in:
parent
21bff66c1a
commit
921a662f79
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ export default function newChatView(): JSX.Element {
|
||||||
.artifacts as ChatOutputType;
|
.artifacts as ChatOutputType;
|
||||||
console.log(output.data.artifacts);
|
console.log(output.data.artifacts);
|
||||||
const is_ai = sender === "Machine";
|
const is_ai = sender === "Machine";
|
||||||
return { isSend: !is_ai, message: String(message), sender_name };
|
return { isSend: !is_ai, message: message, sender_name };
|
||||||
});
|
});
|
||||||
setChatHistory(chatMessages);
|
setChatHistory(chatMessages);
|
||||||
}, [flowPool]);
|
}, [flowPool]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue