diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index a7ff37354..a869a1d99 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -321,12 +321,22 @@ -
- {selectedToolIds - .map((id) => { - return $tools ? $tools.find((tool) => tool.id === id)?.name : id; - }) - .join(', ')} +
+ {#each selectedToolIds.map((id) => { + return $tools ? $tools.find((t) => t.id === id) : { id: id, name: id }; + }) as tool, toolIdx (toolIdx)} + + {tool.name} + + + {#if toolIdx !== selectedToolIds.length - 1} + , + {/if} + {/each}