diff --git a/src/app/(dashboard)/workspaces/[workspaceId]/chats/[fileId]/[...fileUrl]/client.tsx b/src/app/(dashboard)/workspaces/[workspaceId]/chats/[fileId]/[...fileUrl]/client.tsx index 342d07f..3c5dc5d 100644 --- a/src/app/(dashboard)/workspaces/[workspaceId]/chats/[fileId]/[...fileUrl]/client.tsx +++ b/src/app/(dashboard)/workspaces/[workspaceId]/chats/[fileId]/[...fileUrl]/client.tsx @@ -2,11 +2,21 @@ import { UpstashDict, UpstashMessage } from '@upstash/rag-chat'; import dynamic from 'next/dynamic'; +import { useState } from 'react'; import { useGetWorkspaceFile } from '@/common/api/files'; +import ChatGPT from '@/common/components/chat/ChatGPT'; import ChatWrapper from '@/common/components/chat/ChatWrapper'; import { PageError, PageLoader } from '@/common/components/elements'; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from '@/common/components/ui/select'; import { useFileId } from '@/common/hooks'; + // import { getUserSubscriptionPlan } from '@/lib/stripe'; interface ChatClientProps { @@ -24,6 +34,7 @@ const ChatClient: React.FC = ({ sessionId, initialMessages, }) => { + const [modal, setModal] = useState('bge-base-v1.5'); const fileId = useFileId(); const { data: file, isLoading } = useGetWorkspaceFile({ fileId, @@ -47,12 +58,29 @@ const ChatClient: React.FC = ({ -
- {/* */} - +
+ + {modal === 'bge-base-v1.5' ? ( + + ) : ( + + )}
diff --git a/src/common/components/chat/ChatGPT.tsx b/src/common/components/chat/ChatGPT.tsx new file mode 100644 index 0000000..55796cf --- /dev/null +++ b/src/common/components/chat/ChatGPT.tsx @@ -0,0 +1,12 @@ +const ChatGPT: React.FC = () => { + return ( + + ); +}; + +export default ChatGPT;