render tool reponse
This commit is contained in:
12
src/messageHide.tsx
Normal file
12
src/messageHide.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ChatStoreMessage } from "./app";
|
||||
import { getMessageText } from "./chatgpt";
|
||||
|
||||
interface Props {
|
||||
chat: ChatStoreMessage;
|
||||
}
|
||||
|
||||
export function MessageHide({ chat }: Props) {
|
||||
return (
|
||||
<div>{getMessageText(chat).split("\n")[0].slice(0, 18)} ... (deleted)</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user