diff --git a/src/pages/Chatbox.tsx b/src/pages/Chatbox.tsx index 759c4f6..8ae90d9 100644 --- a/src/pages/Chatbox.tsx +++ b/src/pages/Chatbox.tsx @@ -43,13 +43,28 @@ import AddToolMsg from "./AddToolMsg"; import { Textarea } from "@/components/ui/textarea"; import { Button } from "@/components/ui/button"; import { ChatInput } from "@/components/ui/chat/chat-input"; +import { + ChatBubble, + ChatBubbleAvatar, + ChatBubbleMessage, + ChatBubbleAction, + ChatBubbleActionWrapper, +} from "@/components/ui/chat/chat-bubble"; + import { ChatMessageList } from "@/components/ui/chat/chat-message-list"; import { + AlertTriangleIcon, + ArrowUpIcon, CornerDownLeftIcon, + CornerLeftUpIcon, + CornerUpLeftIcon, GlobeIcon, ImageIcon, + InfoIcon, KeyIcon, SearchIcon, + Settings2, + Settings2Icon, } from "lucide-react"; import { Switch } from "@/components/ui/switch"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; @@ -603,28 +618,58 @@ export default function ChatBOX(props: { )} {chatStore.history.length === 0 && ( -

- {Tr("No chat history here")} -
⚙{Tr("Model")}: {chatStore.model} -
⬆{Tr("Click above to change the settings of this chat")} -
↖{Tr("Click the conor to create a new chat")} -
⚠ - {Tr( - "All chat history and settings are stored in the local browser" - )} -
-

+ + + {Tr("No chat history here")} + +
+ + + {Tr("Model")}: {chatStore.model} + +
+
+ + + {Tr("Click above to change the settings of this chat")} + +
+
+ + {Tr("Click the corner to create a new chat")} +
+
+ + + {Tr( + "All chat history and settings are stored in the local browser" + )} + +
+
+
)} {chatStore.systemMessageContent.trim() && ( -
-
Prompt
-
setShowSettings(true)} - > - {chatStore.systemMessageContent} -
-
+ + +
+
System Prompt
+
setShowSettings(true)} + > + {chatStore.systemMessageContent} +
+
+
+ + } + onClick={() => setShowSettings(true)} + /> + +
)} {chatStore.history.map((_, messageIndex) => ( ))} {showGenerating && ( -

- {generatingMessage || Tr("Generating...")} - ... -

+ + + )}

{chatStore.history.length > 0 && ( @@ -674,11 +718,14 @@ export default function ChatBOX(props: {

{chatStore.postBeginIndex !== 0 && ( - <> -
- {Tr("Info: chat history is too long, forget messages")}:{" "} - {chatStore.postBeginIndex} - + + + {Tr("Chat History Notice")} + + {Tr("Info: chat history is too long, forget messages")}:{" "} + {chatStore.postBeginIndex} + + )}