diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index c08ac35fd..b169c66bf 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2173,42 +2173,44 @@ {:else} - { - const model = $models.find((m) => m.id === e); - if (model?.info?.meta?.toolIds ?? false) { - return [...new Set([...a, ...model.info.meta.toolIds])]; - } - return a; - }, [])} - transparentBackground={$settings?.backgroundImageUrl ?? false} - {stopResponse} - {createMessagePair} - on:upload={async (e) => { - const { type, data } = e.detail; +
+ { + const model = $models.find((m) => m.id === e); + if (model?.info?.meta?.toolIds ?? false) { + return [...new Set([...a, ...model.info.meta.toolIds])]; + } + return a; + }, [])} + transparentBackground={$settings?.backgroundImageUrl ?? false} + {stopResponse} + {createMessagePair} + on:upload={async (e) => { + const { type, data } = e.detail; - if (type === 'web') { - await uploadWeb(data); - } else if (type === 'youtube') { - await uploadYoutubeTranscription(data); - } - }} - on:submit={async (e) => { - if (e.detail) { - prompt = ''; - await tick(); - submitPrompt(e.detail); - } - }} - /> + if (type === 'web') { + await uploadWeb(data); + } else if (type === 'youtube') { + await uploadYoutubeTranscription(data); + } + }} + on:submit={async (e) => { + if (e.detail) { + prompt = ''; + await tick(); + submitPrompt(e.detail); + } + }} + /> +
{/if} diff --git a/src/lib/components/chat/Placeholder.svelte b/src/lib/components/chat/Placeholder.svelte index 7b9a0e9ea..3105e4452 100644 --- a/src/lib/components/chat/Placeholder.svelte +++ b/src/lib/components/chat/Placeholder.svelte @@ -89,7 +89,7 @@ {#key mounted} -
+
{#if $temporaryChatEnabled}