diff --git a/src/app/c/[chatId]/page.tsx b/src/app/c/[chatId]/page.tsx index 39b93f0..06cd823 100644 --- a/src/app/c/[chatId]/page.tsx +++ b/src/app/c/[chatId]/page.tsx @@ -1,10 +1,5 @@ 'use client'; import ChatWindow from '@/components/ChatWindow'; -import React from 'react'; -const Page = () => { - return ; -}; - -export default Page; +export default ChatWindow; diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx index 19cc542..a2a9f67 100644 --- a/src/components/ChatWindow.tsx +++ b/src/components/ChatWindow.tsx @@ -51,22 +51,26 @@ const ChatWindow = () => { ); } - return isReady ? notFound ? ( - + return isReady ? ( + notFound ? ( + + ) : ( +
+ {messages.length > 0 ? ( + <> + + + + ) : ( + + )} +
+ ) ) : ( -
- {messages.length > 0 ? ( - <> - - - - ) : ( - - )} +
+
- ) :
- -
; + ); }; export default ChatWindow; diff --git a/src/components/MessageInputActions/Optimization.tsx b/src/components/MessageInputActions/Optimization.tsx index bc56ef2..2f0cd82 100644 --- a/src/components/MessageInputActions/Optimization.tsx +++ b/src/components/MessageInputActions/Optimization.tsx @@ -86,12 +86,12 @@ const Optimization = () => { )} >
-
+
{mode.icon}

{mode.title}

{mode.key === 'quality' && ( - + Beta )} diff --git a/src/lib/hooks/useChat.tsx b/src/lib/hooks/useChat.tsx index 3559b7c..fdb5743 100644 --- a/src/lib/hooks/useChat.tsx +++ b/src/lib/hooks/useChat.tsx @@ -269,7 +269,7 @@ export const chatContext = createContext({ export const ChatProvider = ({ children }: { children: React.ReactNode }) => { const params: { chatId: string } = useParams(); - + const searchParams = useSearchParams(); const initialMessage = searchParams.get('q'); @@ -506,7 +506,7 @@ export const ChatProvider = ({ children }: { children: React.ReactNode }) => { setIsReady(true); console.debug(new Date(), 'app:ready'); } else if (isMessagesLoaded && isConfigReady && !newChatCreated) { - checkReconnect() + checkReconnect(); } else { setIsReady(false); }