From fa9d81e3b22a5c99fc9de17d6874f15d3edb8dea Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 2 Jun 2025 10:02:03 +0700 Subject: [PATCH] enhancement/tmp-hide-attachment-icon (#5160) --- web-app/src/containers/ChatInput.tsx | 135 +++++++++++++++++++-------- 1 file changed, 97 insertions(+), 38 deletions(-) diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx index 86b74997d..db07d1f60 100644 --- a/web-app/src/containers/ChatInput.tsx +++ b/web-app/src/containers/ChatInput.tsx @@ -6,6 +6,12 @@ import { usePrompt } from '@/hooks/usePrompt' import { useThreads } from '@/hooks/useThreads' import { useCallback, useEffect, useRef, useState } from 'react' import { Button } from '@/components/ui/button' +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from '@/components/ui/tooltip' import { ArrowRight } from 'lucide-react' import { IconPaperclip, @@ -401,7 +407,7 @@ const ChatInput = ({ {/* File attachment - always available */}
@@ -419,56 +425,109 @@ const ChatInput = ({
*/} {selectedModel?.capabilities?.includes('vision') && ( -
- -
+ + + +
+ +
+
+ +

Vision

+
+
+
)} {selectedModel?.capabilities?.includes('embeddings') && ( -
- -
+ + + +
+ +
+
+ +

Embeddings

+
+
+
)} {selectedModel?.capabilities?.includes('tools') && hasActiveMCPServers && ( - - {(isOpen, toolsCount) => ( -
- - {toolsCount > 0 && ( -
- - {toolsCount > 99 ? '99+' : toolsCount} - -
- )} -
- )} -
+ + + + + {(isOpen, toolsCount) => ( +
+ + {toolsCount > 0 && ( +
+ + {toolsCount > 99 ? '99+' : toolsCount} + +
+ )} +
+ )} +
+
+ +

Tools

+
+
+
)} {selectedModel?.capabilities?.includes('web_search') && ( -
- -
+ + + +
+ +
+
+ +

Web Search

+
+
+
)} {selectedModel?.capabilities?.includes('reasoning') && ( -
- -
+ + + +
+ +
+
+ +

Reasoning

+
+
+
)}