diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 7e1a765750..7859be53bb 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -1739,11 +1739,11 @@
- +
-
+
{#if showToolsButton} @@ -1770,7 +1770,7 @@ {#each selectedFilterIds as filterId} {@const filter = toggleFilters.find((f) => f.id === filterId)} {#if filter} - + + {:else} +
+ +
+ {/if} + + {#if showAllTools} + {#each Object.keys(tools) as toolId} + + {/each} + {:else} + {#if toggleFilters && toggleFilters.length > 0} + {#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)} + + + + {/each} + {/if} + + {#if showWebSearchButton} + + + {/if} + + {#if showImageGenerationButton} + + + + {/if} + + {#if showCodeInterpreterButton} + + - {/each} - {/if} - - {#if showWebSearchButton} - - - - {/if} - - {#if showImageGenerationButton} - - - - {/if} - - {#if showCodeInterpreterButton} - - - - {/if} - - {#if tools} -
- - {#if Object.keys(tools).length > 0} -
- {#each Object.keys(tools) as toolId} - - {/each} -
- {#if Object.keys(tools).length > 3} - - {/if} {/if} - {:else} -
- -
{/if}