diff --git a/src/views/pages/ChatPanel.tsx b/src/views/pages/ChatPanel.tsx index 15d6015..f10ae13 100644 --- a/src/views/pages/ChatPanel.tsx +++ b/src/views/pages/ChatPanel.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { useEffect, useRef } from 'react'; -import { ActionIcon, Alert, Anchor, Box, Button, Center, Container, Flex, Group, Radio, Stack, px } from '@mantine/core'; +import { ActionIcon, Alert, Anchor, Box, Button, Center, Chip, Container, Flex, Group, Radio, Stack, px } from '@mantine/core'; import { ScrollArea } from '@mantine/core'; import { useInterval, useResizeObserver, useTimeout, useViewportSize } from '@mantine/hooks'; import messageUtil from '@/util/MessageUtil'; @@ -121,18 +121,18 @@ const chatPanel = observer(() => { return ( {!chat.isBottom && { scrollToBottom() }} title='Bottom' - variant='transparent' sx={{ position: "absolute", bottom: 75, right: 20, zIndex: 999 }}> + variant='transparent' sx={{ position: "absolute", bottom: 80, right: 20, zIndex: 1 }}> } { + sx={{ position: 'absolute', bottom: 10, width: chatPanelWidth - 20 }}> {chat.generating &&
@@ -173,32 +173,23 @@ const chatPanel = observer(() => {
} - - - { - chat.changeChatModel(value); - messageUtil.sendMessage({ - command: 'updateSetting', - key1: "DevChat", - key2: "OpenAI.model", - value: value - }); - }} - withAsterisk> - - - - - - - + { + chat.changeChatModel(value); + messageUtil.sendMessage({ + command: 'updateSetting', + key1: "DevChat", + key2: "OpenAI.model", + value: value + }); + }} > + + GPT-4 + GPT-3.5 + GPT-3.5-16K + +
);