diff --git a/src/components/Sidepanel/Chat/form.tsx b/src/components/Sidepanel/Chat/form.tsx index 08c0659..148ebfd 100644 --- a/src/components/Sidepanel/Chat/form.tsx +++ b/src/components/Sidepanel/Chat/form.tsx @@ -95,7 +95,8 @@ export const SidepanelForm = ({ dropedFile }: Props) => { chatMode, speechToTextLanguage, stopStreamingRequest, - streaming + streaming, + setChatMode } = useMessage() const { isListening, start, stop, transcript } = useSpeechRecognition() @@ -264,6 +265,18 @@ export const SidepanelForm = ({ dropedFile }: Props) => { {t("sendWhenEnter")} ) + }, + { + key: 2, + label: ( + { + setChatMode(e.target.checked ? "rag" : "normal") + }}> + {t("common:chatWithCurrentPage")} + + ) } ] }}>