diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index 3bbe6a6..9f4bd5f 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -1,13 +1,14 @@ -import {Divider, Select, Sheet, Slider, Typography, Option, Box, Chip} from "@mui/joy"; +import {Divider, Select, Sheet, Slider, Typography, Option, Box, Chip, Tooltip, IconButton} from "@mui/joy"; import {useEffect, useState} from "react"; import {setOpenAiParams} from "../lib/OpenAi.jsx"; +import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; const Sidebar = () => { const [model, setModel] = useState('gpt-3.5-turbo'); const [temperature, setTemperature] = useState(0.7); const [maxTokens, setMaxTokens] = useState(500); const [frequencyPenalty, setFrequencyPenalty] = useState(0.01); - const [topG, setTopG] = useState(1); + const [topP, setTopP] = useState(1); useEffect(() => { const timeout = setTimeout(() => { @@ -16,17 +17,25 @@ const Sidebar = () => { temperature: temperature, max_tokens: maxTokens, frequency_penalty: frequencyPenalty, - top_p: topG, + top_p: topP, }); }, 400); return () => clearTimeout(timeout); - }, [model, temperature, maxTokens, frequencyPenalty, topG]) + }, [model, temperature, maxTokens, frequencyPenalty, topP]) return Settings - Model: + + Model: + Choose the AI language model for your chat.
Different models have varying capabilities and performance.} + size="sm" placement="top" sx={{ whiteSpace: 'pre-line', textAlign: "center", p: 1}}> + + + +
+