ai-connector -> ai

This commit is contained in:
Shu Ding 2023-06-16 22:43:24 +02:00
parent 52a209c57a
commit 5744f56ff6
No known key found for this signature in database
GPG key ID: C39970877C25D6DD
11 changed files with 9 additions and 33 deletions

View file

@ -1,4 +1,4 @@
import { type Message } from 'ai-connector'
import { type Message } from 'ai'
import { Separator } from '@/components/ui/separator'
import { ChatMessage } from '@/components/chat-message'

View file

@ -1,6 +1,6 @@
'use client'
import { type Message } from 'ai-connector'
import { type Message } from 'ai'
import { Button } from '@/components/ui/button'
import { IconCheck, IconCopy } from '@/components/ui/icons'

View file

@ -1,4 +1,4 @@
import { Message } from 'ai-connector'
import { Message } from 'ai'
import remarkGfm from 'remark-gfm'
import remarkMath from 'remark-math'

View file

@ -1,4 +1,4 @@
import { type UseChatHelpers } from 'ai-connector/react'
import { type UseChatHelpers } from 'ai/react'
import { Button } from '@/components/ui/button'
import { PromptForm } from '@/components/prompt-form'

View file

@ -1,6 +1,6 @@
'use client'
import { useChat, type Message } from 'ai-connector/react'
import { useChat, type Message } from 'ai/react'
import { cn } from '@/lib/utils'
import { ChatList } from '@/components/chat-list'

View file

@ -1,4 +1,4 @@
import { UseChatHelpers } from 'ai-connector/react'
import { UseChatHelpers } from 'ai/react'
import { Button } from '@/components/ui/button'
import { ExternalLink } from '@/components/external-link'

View file

@ -1,7 +1,7 @@
import * as React from 'react'
import Link from 'next/link'
import Textarea from 'react-textarea-autosize'
import { UseChatHelpers } from 'ai-connector/react'
import { UseChatHelpers } from 'ai/react'
import { useEnterSubmit } from '@/lib/hooks/use-enter-submit'
import { cn } from '@/lib/utils'