From 494f84cd6983c613f010547526b5f9ec4f49b102 Mon Sep 17 00:00:00 2001 From: balibabu Date: Thu, 23 Oct 2025 11:13:21 +0800 Subject: [PATCH] Feat: Add suffix to the parser operator's video configuration #9869 (#10741) ### What problem does this PR solve? Feat: Add suffix to the parser operator's video configuration #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/pages/agent/chat/chat-sheet.tsx | 7 ++++++- web/src/pages/agent/constant/pipeline.tsx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/pages/agent/chat/chat-sheet.tsx b/web/src/pages/agent/chat/chat-sheet.tsx index b994c6cd3..d007dfb74 100644 --- a/web/src/pages/agent/chat/chat-sheet.tsx +++ b/web/src/pages/agent/chat/chat-sheet.tsx @@ -2,10 +2,13 @@ import { Sheet, SheetContent, SheetTitle } from '@/components/ui/sheet'; import { IModalProps } from '@/interfaces/common'; import { cn } from '@/lib/utils'; import { useTranslation } from 'react-i18next'; +import { useIsTaskMode } from '../hooks/use-get-begin-query'; import AgentChatBox from './box'; export function ChatSheet({ hideModal }: IModalProps) { const { t } = useTranslation(); + const isTaskMode = useIsTaskMode(); + return ( ) { onInteractOutside={(e) => e.preventDefault()} > -
{t('chat.chat')}
+
+ {t(isTaskMode ? 'flow.task' : 'chat.chat')} +
diff --git a/web/src/pages/agent/constant/pipeline.tsx b/web/src/pages/agent/constant/pipeline.tsx index 78d4b3ac9..d45eabd3f 100644 --- a/web/src/pages/agent/constant/pipeline.tsx +++ b/web/src/pages/agent/constant/pipeline.tsx @@ -244,7 +244,7 @@ export const FileTypeSuffixMap = { [FileType.TextMarkdown]: ['md', 'markdown', 'mdx', 'txt'], [FileType.Docx]: ['doc', 'docx'], [FileType.PowerPoint]: ['pptx'], - [FileType.Video]: [], + [FileType.Video]: ['mp4', 'avi', 'mkv'], [FileType.Audio]: [ 'da', 'wave',