diff --git a/WebUI/src/App.vue b/WebUI/src/App.vue index efd2cba3..184b344d 100644 --- a/WebUI/src/App.vue +++ b/WebUI/src/App.vue @@ -142,10 +142,12 @@ import {useTheme} from "./assets/js/store/theme.ts"; import AddLLMDialog from "@/components/AddLLMDialog.vue"; import WarningDialog from "@/components/WarningDialog.vue"; import {useBackendServices} from "./assets/js/store/backendServices.ts"; +import {useTextInference} from "@/assets/js/store/textInference.ts"; const backendServices = useBackendServices(); const theme = useTheme(); const globalSetup = useGlobalSetup(); +const textInference = useTextInference() const enhanceCompt = ref>(); const answer = ref>(); @@ -254,6 +256,14 @@ function switchTab(index: number) { } } +watch(textInference, (newSetting, oldSetting) => { + if (newSetting.backend === 'LLAMA.CPP') { + answer.value!.disableRag(); + } else { + answer.value!.restoreRagState(); + } +}) + function miniWindow() { window.electronAPI.miniWindow(); }