diff --git a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
index 5ff3c6a908..0fb4ae9919 100644
--- a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
+++ b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
@@ -1,17 +1,13 @@
@@ -84,50 +93,32 @@
}
}}
>
-
-
-
+ attachmentMenu.callbacks[AttachmentAction.FILE_UPLOAD]()}
+ >
+
+
Add files
-
-
- {#each ATTACHMENT_FILE_ITEMS as item (item.id)}
- {@const enabled = attachmentMenu.isItemEnabled(item.enabledWhen)}
- {#if enabled}
- attachmentMenu.callbacks[item.action]()}
- >
-
+ {#if supportedModalities.length > 0}
+
+ {#each supportedModalities as modality (modality.label)}
+
+
+
+
- {item.label}
-
- {:else if item.disabledTooltip}
-
-
- {#snippet child({ props })}
-
-
-
-
- {item.label}
-
-
- {/snippet}
-
-
-
- {item.disabledTooltip}
-
-
- {/if}
- {/each}
-
-
+
+ {modality.label}
+
+
+ {/each}
+
+ {/if}
+
+