Skip to content

Commit 50d9b1e

Browse files
authored
chore(ui): remove ai sdk (#3997)
1 parent fa38b18 commit 50d9b1e

File tree

3 files changed

+32
-260
lines changed

3 files changed

+32
-260
lines changed

ee/tabby-ui/components/chat/chat-panel.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { RefObject, useMemo, useState } from 'react'
22
import slugify from '@sindresorhus/slugify'
33
import { Content, EditorEvents } from '@tiptap/core'
44
import { useWindowSize } from '@uidotdev/usehooks'
5-
import type { UseChatHelpers } from 'ai/react'
65
import { AnimatePresence, motion } from 'framer-motion'
76
import { compact } from 'lodash-es'
87
import { toast } from 'sonner'
@@ -46,14 +45,16 @@ import { isSameFileContext } from './form-editor/utils'
4645
import { RepoSelect } from './repo-select'
4746
import { PromptFormRef } from './types'
4847

49-
export interface ChatPanelProps extends Pick<UseChatHelpers, 'stop' | 'input'> {
48+
export interface ChatPanelProps {
5049
setInput: (v: string) => void
5150
id?: string
5251
className?: string
5352
onSubmit: (content: string) => Promise<any>
5453
onUpdate: (p: EditorEvents['update']) => void
5554
reload: () => void
5655
chatInputRef: RefObject<PromptFormRef>
56+
input: string
57+
stop: () => void
5758
}
5859

5960
export interface ChatPanelRef {

ee/tabby-ui/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
"@vercel/analytics": "^1.0.0",
6767
"@vercel/kv": "^0.2.1",
6868
"@vercel/og": "^0.5.7",
69-
"ai": "^2.1.6",
7069
"class-variance-authority": "^0.4.0",
7170
"clsx": "^1.2.1",
7271
"cm6-graphql": "^0.0.15",

0 commit comments

Comments
 (0)