add save to prisma

This commit is contained in:
Shu Ding 2023-05-22 13:10:52 +02:00
parent 562dbe7442
commit 609194517e
No known key found for this signature in database
GPG key ID: B84C6E25F5FEA16B
3 changed files with 97 additions and 76 deletions

View file

@ -13,7 +13,7 @@ export interface ChatProps {
}
export function Chat({
id: _id,
id,
// create,
messages,
}: ChatProps) {
@ -22,7 +22,7 @@ export function Chat({
const { isLoading, messageList, appendUserMessage, reloadLastMessage } =
usePrompt({
messages,
_id,
id,
// onCreate: (id: string) => {
// router.push(`/chat/${id}`);
// },