diff --git a/src/lib/components/chat/MessageInput/InputMenu.svelte b/src/lib/components/chat/MessageInput/InputMenu.svelte index 628d1e830d..107d410344 100644 --- a/src/lib/components/chat/MessageInput/InputMenu.svelte +++ b/src/lib/components/chat/MessageInput/InputMenu.svelte @@ -3,7 +3,7 @@ import { flyAndScale } from '$lib/utils/transitions'; import { getContext, onMount, tick } from 'svelte'; - import { config, user, tools as _tools, mobile } from '$lib/stores'; + import { config, user, tools as _tools, mobile, knowledge, chats } from '$lib/stores'; import { createPicker } from '$lib/utils/google-drive-picker'; import { getTools } from '$lib/apis/tools'; @@ -142,37 +142,6 @@ - - { - if (fileUploadEnabled) { - if (!detectMobile()) { - screenCaptureHandler(); - } else { - const cameraInputElement = document.getElementById('camera-input'); - - if (cameraInputElement) { - cameraInputElement.click(); - } - } - } - }} - > - -
{$i18n.t('Reference Chats')}
-
-
- {#if $config?.features?.enable_notes ?? false} + {#if ($chats ?? []).length > 0} + + { + if (fileUploadEnabled) { + if (!detectMobile()) { + screenCaptureHandler(); + } else { + const cameraInputElement = document.getElementById('camera-input'); + + if (cameraInputElement) { + cameraInputElement.click(); + } + } + } + }} + > + +
{$i18n.t('Reference Chats')}
+
+
+ {/if} + {#if fileUploadEnabled} {#if $config?.features?.enable_google_drive_integration}