diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index 61c6510..6c09133 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -1,5 +1,5 @@ import { Conversation, KeyValuePair, Message, OpenAIModel } from "@/types"; -import { FC, MutableRefObject, useEffect, useRef, useState } from 'react'; +import { FC, MutableRefObject, useEffect, useRef, useState } from "react"; import { ChatInput } from "./ChatInput"; import { ChatLoader } from "./ChatLoader"; import { ChatMessage } from "./ChatMessage"; @@ -17,7 +17,7 @@ interface Props { lightMode: "light" | "dark"; onSend: (message: Message, isResend: boolean) => void; onUpdateConversation: (conversation: Conversation, data: KeyValuePair) => void; - stopConversationRef: MutableRefObject + stopConversationRef: MutableRefObject; } export const Chat: FC = ({ conversation, models, messageIsStreaming, modelError, messageError, loading, lightMode, onSend, onUpdateConversation, stopConversationRef }) => { @@ -34,7 +34,7 @@ export const Chat: FC = ({ conversation, models, messageIsStreaming, mode }, [conversation.messages]); return ( -
+
{modelError ? (
Error fetching models.
diff --git a/pages/index.tsx b/pages/index.tsx index d2f69fe..e846502 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -8,7 +8,7 @@ import { saveConversation, saveConversations, updateConversation } from "@/utils import { exportConversations, importConversations } from "@/utils/app/data"; import { IconArrowBarLeft, IconArrowBarRight } from "@tabler/icons-react"; import Head from "next/head"; -import { useEffect, useRef, useState } from 'react'; +import { useEffect, useRef, useState } from "react"; export default function Home() { const [conversations, setConversations] = useState([]); @@ -54,7 +54,7 @@ export default function Home() { prompt: updatedConversation.prompt }; - const controller = new AbortController() + const controller = new AbortController(); const response = await fetch("/api/chat", { method: "POST", headers: { diff --git a/styles/globals.css b/styles/globals.css index f1218ea..4dfeeef 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -27,3 +27,7 @@ width: 6px; height: 6px; } + +html { + background: #202123; +}