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

View file

@ -1,5 +1,5 @@
import { Suggestion } from '@/lib/db/schema';
import { UseChatHelpers } from 'ai/react';
import { UseChatHelpers } from '@ai-sdk/react';
import { ComponentType, Dispatch, ReactNode, SetStateAction } from 'react';
import { DataStreamDelta } from './data-stream-handler';
import { UIArtifact } from './artifact';

View file

@ -1,6 +1,6 @@
'use client';
import { useChat } from 'ai/react';
import { useChat } from '@ai-sdk/react';
import { useEffect, useRef } from 'react';
import { artifactDefinitions, ArtifactKind } from './artifact';
import { Suggestion } from '@/lib/db/schema';

View file

@ -39,7 +39,7 @@ import {
} from './icons';
import { artifactDefinitions, ArtifactKind } from './artifact';
import { ArtifactToolbarItem } from './create-artifact';
import { UseChatHelpers } from 'ai/react';
import { UseChatHelpers } from '@ai-sdk/react';
type ToolProps = {
description: string;