diff --git a/web/screens/Hub/ModelList/ModelHeader/index.tsx b/web/screens/Hub/ModelList/ModelHeader/index.tsx index da98e41e3d..9a939aa445 100644 --- a/web/screens/Hub/ModelList/ModelHeader/index.tsx +++ b/web/screens/Hub/ModelList/ModelHeader/index.tsx @@ -71,7 +71,6 @@ const ModelItemHeader = ({ model, onClick, open }: Props) => { let downloadButton = ( } disabled={ - isModelSupportRagAndTools && + !isModelSupportRagAndTools && activeAssistant?.tools && activeAssistant?.tools[0]?.enabled } @@ -231,7 +231,8 @@ const ChatInput = () => {
  • {
  • { - fileInputRef.current?.click() - setShowAttacmentMenus(false) + if (isModelSupportRagAndTools) { + fileInputRef.current?.click() + setShowAttacmentMenus(false) + } }} >