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!');
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue