From e3eb8e909bd53e81c18b0677852b2ff76c350a46 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Tue, 19 Aug 2025 22:29:56 +0700 Subject: [PATCH] chore: attachment icon conditional --- web-app/src/containers/ChatInput.tsx | 30 +++++++++++++++------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx index a0ac7db5f..4943b71fb 100644 --- a/web-app/src/containers/ChatInput.tsx +++ b/web-app/src/containers/ChatInput.tsx @@ -488,20 +488,22 @@ const ChatInput = ({ model, className, initialMessage }: ChatInputProps) => { useLastUsedModel={initialMessage} /> )} - {/* File attachment - always available */} -
- - -
+ {/* File attachment - show only for models with mmproj */} + {selectedModel?.settings?.offload_mmproj && ( +
+ + +
+ )} {/* Microphone - always available - Temp Hide */} {/*