diff --git a/bun.lockb b/bun.lockb index ba6b253..1212713 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index cf62e01..5d64161 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-i18next": "^14.1.0", + "react-icons": "^5.2.1", "react-markdown": "8.0.0", "react-router-dom": "6.10.0", "react-syntax-highlighter": "^15.5.0", diff --git a/src/components/Option/Playground/PlaygroundForm.tsx b/src/components/Option/Playground/PlaygroundForm.tsx index 788d785..c3e97ec 100644 --- a/src/components/Option/Playground/PlaygroundForm.tsx +++ b/src/components/Option/Playground/PlaygroundForm.tsx @@ -4,7 +4,7 @@ import React from "react" import useDynamicTextareaSize from "~/hooks/useDynamicTextareaSize" import { toBase64 } from "~/libs/to-base64" import { useMessageOption } from "~/hooks/useMessageOption" -import { Checkbox, Dropdown, Select, Switch, Tooltip } from "antd" +import { Checkbox, Dropdown, Switch, Tooltip } from "antd" import { Image } from "antd" import { useWebUI } from "~/store/webui" import { defaultEmbeddingModelForRag } from "~/services/ollama" @@ -13,6 +13,7 @@ import { getVariable } from "~/utils/select-varaible" import { useTranslation } from "react-i18next" import { KnowledgeSelect } from "../Knowledge/KnowledgeSelect" import { useSpeechRecognition } from "@/hooks/useSpeechRecognition" +import { PiGlobe } from "react-icons/pi" type Props = { dropedFile: File | undefined @@ -24,7 +25,7 @@ export const PlaygroundForm = ({ dropedFile }: Props) => { const [typing, setTyping] = React.useState(false) const { onSubmit, - selectedModel, + selectedModel, chatMode, speechToTextLanguage, stopStreamingRequest, @@ -250,19 +251,7 @@ export const PlaygroundForm = ({ dropedFile }: Props) => { {!selectedKnowledge && (
- - - + setWebSearch(e)} diff --git a/src/components/Sidepanel/Chat/form.tsx b/src/components/Sidepanel/Chat/form.tsx index 4cd4954..0ad50ae 100644 --- a/src/components/Sidepanel/Chat/form.tsx +++ b/src/components/Sidepanel/Chat/form.tsx @@ -12,12 +12,11 @@ import { MicIcon, StopCircleIcon, X, - Wifi, - WifiOff } from "lucide-react" import { useTranslation } from "react-i18next" import { ModelSelect } from "@/components/Common/ModelSelect" import { useSpeechRecognition } from "@/hooks/useSpeechRecognition" +import { PiGlobeX, PiGlobe} from "react-icons/pi"; type Props = { dropedFile: File | undefined @@ -233,7 +232,6 @@ export const SidepanelForm = ({ dropedFile }: Props) => { {...form.getInputProps("message")} />
- + {browserSupportsSpeechRecognition && (