diff --git a/src/pages/sidepanel/SidePanel.tsx b/src/pages/sidepanel/SidePanel.tsx index a22b45b..91e8ba0 100644 --- a/src/pages/sidepanel/SidePanel.tsx +++ b/src/pages/sidepanel/SidePanel.tsx @@ -5,10 +5,8 @@ import withErrorBoundary from '@src/shared/hoc/withErrorBoundary'; import { Box, Button, Center, Divider, Grid, GridItem, Text } from '@chakra-ui/react'; import { ChatSession, deleteSession, getSessions } from '@pages/storage/chat'; import ChatBox from '@pages/components/ChatBox'; -import EngineSettings from '@src/engines/engineSettings'; import { globalConfigKey_CurrentSessionId, getGlobalConfig, saveGlobalConfig } from '@pages/storage/global'; import { SessionList } from '@pages/sidepanel/SessionList'; -import { GLOBAL_CONFIG_KEY_ENGINE_SETTINGS } from '@src/constants'; import { createNewSession } from '@pages/content/storageUtils'; import * as AgentChat from '@src/agent/chat-with-the-bot.json'; import AgentV2 from '@src/agent/agentV2'; @@ -16,7 +14,6 @@ import AgentV2 from '@src/agent/agentV2'; const SidePanel = () => { const [sessions, setSessions] = useState>(new Map()); const [currentSessionId, setCurrentSessionId] = useState(null); - const [settings, setSettings] = useState(null); const createNewChat = () => { createNewSession('', AgentChat as unknown as AgentV2).then(id => { @@ -27,12 +24,6 @@ const SidePanel = () => { }); }; - useEffect(() => { - getGlobalConfig(GLOBAL_CONFIG_KEY_ENGINE_SETTINGS).then((settings: EngineSettings) => { - setSettings(settings); - }); - }, []); - useEffect(() => { getSessions(100).then(sessions => { console.log('sessions', sessions); @@ -96,7 +87,7 @@ const SidePanel = () => { /> - {currentSessionId && } + {currentSessionId && } );