diff --git a/client/src/components/Messages/index.jsx b/client/src/components/Messages/index.jsx index ae11d090ad..b112fff57e 100644 --- a/client/src/components/Messages/index.jsx +++ b/client/src/components/Messages/index.jsx @@ -20,7 +20,7 @@ export default function Messages({ isSearchView = false }) { const _messagesTree = isSearchView ? searchResultMessagesTree : messagesTree; const conversation = useRecoilValue(store.conversation) || {}; - const { conversationId, model, chatGptLabel } = conversation; + const { conversationId, model, chatGptLabel, toneStyle } = conversation; const models = useRecoilValue(store.models) || []; const modelName = models.find(element => element.model == model)?.name; @@ -79,18 +79,26 @@ export default function Messages({ isSearchView = false }) { scrollToBottom(); }; + const getConversationTitle = () => { + if (isSearchView) return `Search: ${searchQuery}`; + else { + let _title = `Model: ${modelName}`; + if (chatGptLabel) _title += ` of ${chatGptLabel}`; + if (toneStyle) _title += ` (${toneStyle})`; + return _title; + } + }; + return (
- {isSearchView - ? `Search: ${searchQuery}` - : `Model: ${modelName} ${chatGptLabel ? `(${chatGptLabel})` : ''}`} + {getConversationTitle()}
{_messagesTree === null ? ( diff --git a/client/src/components/ui/Landing.jsx b/client/src/components/ui/Landing.jsx index 617e6903f1..f2400f72b5 100644 --- a/client/src/components/ui/Landing.jsx +++ b/client/src/components/ui/Landing.jsx @@ -30,9 +30,9 @@ export default function Landing() { }; return ( -
+
-

+

ChatGPT Clone