diff --git a/ui/app/library/page.tsx b/ui/app/library/page.tsx index 8294fc1..c7a8bd1 100644 --- a/ui/app/library/page.tsx +++ b/ui/app/library/page.tsx @@ -5,6 +5,7 @@ import { formatTimeDifference } from '@/lib/utils'; import { BookOpenText, ClockIcon, Delete, ScanEye } from 'lucide-react'; import Link from 'next/link'; import { useEffect, useState } from 'react'; +import process from 'process'; export interface Chat { id: string; diff --git a/ui/components/DeleteChat.tsx b/ui/components/DeleteChat.tsx index 165f86e..6deb90f 100644 --- a/ui/components/DeleteChat.tsx +++ b/ui/components/DeleteChat.tsx @@ -3,6 +3,7 @@ import { Dialog, Transition } from '@headlessui/react'; import { Fragment, useState } from 'react'; import { toast } from 'sonner'; import { Chat } from '@/app/library/page'; +import process from 'process'; const DeleteChat = ({ chatId, diff --git a/ui/components/SearchImages.tsx b/ui/components/SearchImages.tsx index b53b8b0..25c49a3 100644 --- a/ui/components/SearchImages.tsx +++ b/ui/components/SearchImages.tsx @@ -4,6 +4,7 @@ import { useState } from 'react'; import Lightbox from 'yet-another-react-lightbox'; import 'yet-another-react-lightbox/styles.css'; import { Message } from './ChatWindow'; +import process from 'process'; type Image = { url: string; diff --git a/ui/components/SearchVideos.tsx b/ui/components/SearchVideos.tsx index 2646322..a57902d 100644 --- a/ui/components/SearchVideos.tsx +++ b/ui/components/SearchVideos.tsx @@ -4,6 +4,7 @@ import { useState } from 'react'; import Lightbox, { GenericSlide, VideoSlide } from 'yet-another-react-lightbox'; import 'yet-another-react-lightbox/styles.css'; import { Message } from './ChatWindow'; +import process from 'process'; type Video = { url: string; diff --git a/ui/components/SettingsDialog.tsx b/ui/components/SettingsDialog.tsx index 171e812..55dec50 100644 --- a/ui/components/SettingsDialog.tsx +++ b/ui/components/SettingsDialog.tsx @@ -8,6 +8,7 @@ import React, { type SelectHTMLAttributes, } from 'react'; import ThemeSwitcher from './theme/Switcher'; +import process from 'process'; interface InputProps extends React.InputHTMLAttributes {} diff --git a/ui/lib/actions.ts b/ui/lib/actions.ts index d7eb71f..9cebc95 100644 --- a/ui/lib/actions.ts +++ b/ui/lib/actions.ts @@ -1,4 +1,5 @@ import { Message } from '@/components/ChatWindow'; +import process from 'process'; export const getSuggestions = async (chatHisory: Message[]) => { const chatModel = localStorage.getItem('chatModel');