chore: bump versions (#845)

This commit is contained in:
Jeremy 2025-03-04 18:00:14 -08:00 committed by GitHub
parent 9dd9a9898c
commit c58fd528fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 89 additions and 113 deletions

View file

@ -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!');
},
});