From 6c0d094aa657c00d4ec05a21a4e94e0bb2e9ea7f Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 4 Dec 2025 16:35:06 +0800 Subject: [PATCH] feat: add video understanding node with multilingual support --- ui/src/locales/lang/en-US/views/workflow.ts | 13 +++++++++++++ ui/src/locales/lang/zh-Hant/views/workflow.ts | 17 +++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/ui/src/locales/lang/en-US/views/workflow.ts b/ui/src/locales/lang/en-US/views/workflow.ts index 28aa7c930..54445695d 100644 --- a/ui/src/locales/lang/en-US/views/workflow.ts +++ b/ui/src/locales/lang/en-US/views/workflow.ts @@ -298,6 +298,19 @@ You are a master of problem optimization, adept at accurately inferring user int requiredMessage: 'Please select an image', }, }, + videoUnderstandNode: { + label: 'Video Understanding', + text: 'Identify objects, scenes, and other information in videos to answer user questions', + answer: 'AI Response Content', + model: { + label: 'Vision Model', + requiredMessage: 'Please select a vision model', + }, + image: { + label: 'Select Video', + requiredMessage: 'Please select a video', + }, + }, variableAssignNode: { label: 'Variable Assign', text: 'Update the value of the global variable', diff --git a/ui/src/locales/lang/zh-Hant/views/workflow.ts b/ui/src/locales/lang/zh-Hant/views/workflow.ts index e2b561a18..3d488896e 100644 --- a/ui/src/locales/lang/zh-Hant/views/workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/workflow.ts @@ -284,6 +284,19 @@ export default { title1: '分段標題設置為分段的關聯問題', title2: '文檔名稱設置為分段的關聯問題', }, + videoUnderstandNode: { + label: '视频理解', + text: '识别出视频中的对象、场景等信息回答用户问题', + answer: 'AI 回答内容', + model: { + label: '视觉模型', + requiredMessage: '请选择视觉模型', + }, + image: { + label: '选择视频', + requiredMessage: '请选择视频', + }, + }, imageUnderstandNode: { label: '圖片理解', text: '識別出圖片中的物件、場景等信息回答用戶問題', @@ -456,13 +469,13 @@ export default { loopIndex: '下標', loopItem: '循環元素', }, - loopBodyNode: { label: '循環體', text: '循環體' }, + loopBodyNode: {label: '循環體', text: '循環體'}, loopContinueNode: { label: 'Continue', text: '用於終止當前循環,執行下次循環', isContinue: 'Continue', }, - loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break' }, + loopBreakNode: {label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break'}, variableSplittingNode: { label: '變量拆分', text: '通過配置 JSON Path 表達式,對輸入的 JSON 格式變量進行解析和拆分',