Add import for process
This commit is contained in:
parent
83acaae23b
commit
834a38046f
6 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -8,6 +8,7 @@ import React, {
|
|||
type SelectHTMLAttributes,
|
||||
} from 'react';
|
||||
import ThemeSwitcher from './theme/Switcher';
|
||||
import process from 'process';
|
||||
|
||||
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { Message } from '@/components/ChatWindow';
|
||||
import process from 'process';
|
||||
|
||||
export const getSuggestions = async (chatHisory: Message[]) => {
|
||||
const chatModel = localStorage.getItem('chatModel');
|
||||
|
|
Loading…
Add table
Reference in a new issue