add save to prisma
This commit is contained in:
parent
562dbe7442
commit
609194517e
3 changed files with 97 additions and 76 deletions
|
|
@ -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}`);
|
||||
// },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue