feat: edit and resubmit messages (#592)

This commit is contained in:
Jeremy 2024-12-05 15:29:33 +03:00 committed by GitHub
parent 2e479ccce7
commit 64d1aad2bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 302 additions and 25 deletions

View file

@ -58,6 +58,7 @@ function PureBlock({
setBlock,
messages,
setMessages,
reload,
votes,
}: {
chatId: string;
@ -82,6 +83,9 @@ function PureBlock({
},
chatRequestOptions?: ChatRequestOptions,
) => void;
reload: (
chatRequestOptions?: ChatRequestOptions,
) => Promise<string | null | undefined>;
}) {
const {
data: documents,
@ -286,6 +290,8 @@ function PureBlock({
setBlock={setBlock}
votes={votes}
messages={messages}
setMessages={setMessages}
reload={reload}
/>
<form className="flex flex-row gap-2 relative items-end w-full px-4 pb-4">