Feat: The default value of the parser operator's Video output format is set to text #9869 (#10745)

### What problem does this PR solve?
Feat: The default value of the parser operator's Video output format is
set to text #9869

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-10-23 14:18:51 +08:00
committed by GitHub
parent adeb9d87e2
commit ac188b0486
2 changed files with 5 additions and 4 deletions

View File

@ -49,7 +49,7 @@ export enum PptOutputFormat {
}
export enum VideoOutputFormat {
Json = 'json',
Text = 'text',
}
export enum AudioOutputFormat {
@ -76,7 +76,7 @@ export const InitialOutputFormatMap = {
[FileType.TextMarkdown]: TextMarkdownOutputFormat.Text,
[FileType.Docx]: DocxOutputFormat.Json,
[FileType.PowerPoint]: PptOutputFormat.Json,
[FileType.Video]: VideoOutputFormat.Json,
[FileType.Video]: VideoOutputFormat.Text,
[FileType.Audio]: AudioOutputFormat.Text,
};

View File

@ -28,6 +28,7 @@ import {
} from '@/components/ui/breadcrumb';
import { Button } from '@/components/ui/button';
import { Modal } from '@/components/ui/modal/modal';
import { AgentCategory } from '@/constants/agent';
import { Images } from '@/constants/common';
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
import { useGetKnowledgeSearchParams } from '@/hooks/route-hook';
@ -178,8 +179,8 @@ const Chunk = () => {
if (knowledgeId) {
navigateToDatasetOverview(knowledgeId)();
}
if (agentId) {
navigateToAgent(agentId)();
if (isAgent) {
navigateToAgent(agentId, AgentCategory.DataflowCanvas)();
}
}}
>