diff --git a/src/lib/components/chat/MessageInput/InputMenu.svelte b/src/lib/components/chat/MessageInput/InputMenu.svelte index f0bebd8c0..6f7061bed 100644 --- a/src/lib/components/chat/MessageInput/InputMenu.svelte +++ b/src/lib/components/chat/MessageInput/InputMenu.svelte @@ -46,28 +46,31 @@ transition={flyAndScale} > {#if Object.keys(tools).length > 0} - {#each Object.keys(tools) as toolId} -
-
- +
+ {#each Object.keys(tools) as toolId} +
+
+ - -
{tools[toolId].name}
-
+ +
{tools[toolId].name}
+
+
+ + { + selectedToolIds = e.detail + ? [...selectedToolIds, toolId] + : selectedToolIds.filter((id) => id !== toolId); + }} + />
+ {/each} +
- { - selectedToolIds = e.detail - ? [...selectedToolIds, toolId] - : selectedToolIds.filter((id) => id !== toolId); - }} - /> -
- {/each}
{/if}