diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 5c5c67cca2..8d5107286e 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -2223,7 +2223,7 @@
-
+
- {/if} -
- {#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || showSkillsButton || (toggleFilters && toggleFilters.length > 0)} - oauthRedirectHandler(tool, chatInputDraft)} - {onWebSearchToggle} - closeOnOutsideClick={integrationsMenuCloseOnOutsideClick} - onShowValves={(e) => { - const { type, id } = e; - selectedValvesType = type; - selectedValvesItemId = id; - showValvesModal = true; - integrationsMenuCloseOnOutsideClick = false; - }} - onClose={async () => { - await tick(); + oauthRedirectHandler(tool, chatInputDraft)} + {onWebSearchToggle} + closeOnOutsideClick={integrationsMenuCloseOnOutsideClick} + onShowValves={(e) => { + const { type, id } = e; + selectedValvesType = type; + selectedValvesItemId = id; + showValvesModal = true; + integrationsMenuCloseOnOutsideClick = false; + }} + onClose={async () => { + await tick(); - const chatInput = document.getElementById('chat-input'); - chatInput?.focus(); - }} + const chatInput = document.getElementById('chat-input'); + chatInput?.focus(); + }} + > + + + {/if} +
+ +
+ {#if selectedModelIds.length === 1 && $models.find((m) => m.id === selectedModelIds[0])?.has_user_valves} +
+ - + +
+ {/if} + +
+ {#if (selectedToolIds ?? []).length > 0} + + + {/if} - {#if selectedModelIds.length === 1 && $models.find((m) => m.id === selectedModelIds[0])?.has_user_valves} -
- - - -
+ {#if (selectedSkillIds ?? []).length > 0} + + + {/if} -
- {#if (selectedToolIds ?? []).length > 0} + {#each selectedFilterIds as filterId (filterId)} + {@const filter = toggleFilters.find((f) => f.id === filterId)} + {#if filter} - - - {/if} - - {#if (selectedSkillIds ?? []).length > 0} - - - - {/if} - - {#each selectedFilterIds as filterId (filterId)} - {@const filter = toggleFilters.find((f) => f.id === filterId)} - {#if filter} - - - - {/if} - {/each} - - {#if webSearchEnabled && showWebSearchButton} - - - - {/if} - - {#if imageGenerationEnabled && showImageGenerationButton} - - - - {/if} - - {#if codeInterpreterEnabled && showCodeInterpreterButton} - - - - {/if} - - {#each pendingOAuthTools as pendingTool (pendingTool.id)} - - {/each} - - - {#if showTerminalSelector} - {/if} -
+ {/each} + + {#if webSearchEnabled && showWebSearchButton} + + + + {/if} + + {#if imageGenerationEnabled && showImageGenerationButton} + + + + {/if} + + {#if codeInterpreterEnabled && showCodeInterpreterButton} + + + + {/if} + + {#each pendingOAuthTools as pendingTool (pendingTool.id)} + + + + {/each} + + + {#if showTerminalSelector} + + {/if}