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)
This commit is contained in:
balibabu
2025-10-23 11:13:21 +08:00
committed by GitHub
parent f24d464a53
commit 494f84cd69
2 changed files with 7 additions and 2 deletions

View File

@ -2,10 +2,13 @@ import { Sheet, SheetContent, SheetTitle } from '@/components/ui/sheet';
import { IModalProps } from '@/interfaces/common'; import { IModalProps } from '@/interfaces/common';
import { cn } from '@/lib/utils'; import { cn } from '@/lib/utils';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useIsTaskMode } from '../hooks/use-get-begin-query';
import AgentChatBox from './box'; import AgentChatBox from './box';
export function ChatSheet({ hideModal }: IModalProps<any>) { export function ChatSheet({ hideModal }: IModalProps<any>) {
const { t } = useTranslation(); const { t } = useTranslation();
const isTaskMode = useIsTaskMode();
return ( return (
<Sheet open modal={false} onOpenChange={hideModal}> <Sheet open modal={false} onOpenChange={hideModal}>
<SheetContent <SheetContent
@ -13,7 +16,9 @@ export function ChatSheet({ hideModal }: IModalProps<any>) {
onInteractOutside={(e) => e.preventDefault()} onInteractOutside={(e) => e.preventDefault()}
> >
<SheetTitle className="hidden"></SheetTitle> <SheetTitle className="hidden"></SheetTitle>
<div className="pl-5 pt-2">{t('chat.chat')}</div> <div className="pl-5 pt-2">
{t(isTaskMode ? 'flow.task' : 'chat.chat')}
</div>
<AgentChatBox></AgentChatBox> <AgentChatBox></AgentChatBox>
</SheetContent> </SheetContent>
</Sheet> </Sheet>

View File

@ -244,7 +244,7 @@ export const FileTypeSuffixMap = {
[FileType.TextMarkdown]: ['md', 'markdown', 'mdx', 'txt'], [FileType.TextMarkdown]: ['md', 'markdown', 'mdx', 'txt'],
[FileType.Docx]: ['doc', 'docx'], [FileType.Docx]: ['doc', 'docx'],
[FileType.PowerPoint]: ['pptx'], [FileType.PowerPoint]: ['pptx'],
[FileType.Video]: [], [FileType.Video]: ['mp4', 'avi', 'mkv'],
[FileType.Audio]: [ [FileType.Audio]: [
'da', 'da',
'wave', 'wave',