chore: bump versions (#845)
This commit is contained in:
parent
9dd9a9898c
commit
c58fd528fc
7 changed files with 89 additions and 113 deletions
|
|
@ -1,14 +1,12 @@
|
|||
'use client';
|
||||
|
||||
import type { Attachment, Message } from 'ai';
|
||||
import { useChat } from 'ai/react';
|
||||
import { useChat } from '@ai-sdk/react';
|
||||
import { useState } from 'react';
|
||||
import useSWR, { useSWRConfig } from 'swr';
|
||||
|
||||
import { ChatHeader } from '@/components/chat-header';
|
||||
import type { Vote } from '@/lib/db/schema';
|
||||
import { fetcher, generateUUID } from '@/lib/utils';
|
||||
|
||||
import { Artifact } from './artifact';
|
||||
import { MultimodalInput } from './multimodal-input';
|
||||
import { Messages } from './messages';
|
||||
|
|
@ -51,7 +49,7 @@ export function Chat({
|
|||
onFinish: () => {
|
||||
mutate('/api/history');
|
||||
},
|
||||
onError: (error) => {
|
||||
onError: () => {
|
||||
toast.error('An error occured, please try again!');
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue