Commit 7b5458ea by Archer Committed by GitHub

fix(dataset): translate image parse node response (#7331)

parent 9601a1a8
...@@ -81,7 +81,7 @@ export const createImageCaptionChildNodeResponse = ({ ...@@ -81,7 +81,7 @@ export const createImageCaptionChildNodeResponse = ({
requestIds, requestIds,
usage, usage,
seconds, seconds,
moduleName: i18nT('account_usage:image_parse'), moduleName: i18nT('chat:image_parse'),
textOutput: queries.join('\n') textOutput: queries.join('\n')
}); });
......
...@@ -441,7 +441,7 @@ describe('dispatchAgentDatasetSearch', () => { ...@@ -441,7 +441,7 @@ describe('dispatchAgentDatasetSearch', () => {
expect(result.nodeResponse?.childrenResponses).toEqual([ expect(result.nodeResponse?.childrenResponses).toEqual([
expect.objectContaining({ expect.objectContaining({
id: 'req_image_caption', id: 'req_image_caption',
moduleName: 'account_usage:image_parse', moduleName: 'chat:image_parse',
llmRequestIds: ['req_image_caption'], llmRequestIds: ['req_image_caption'],
totalPoints: 0.12, totalPoints: 0.12,
textOutput: 'image caption' textOutput: 'image caption'
......
...@@ -267,7 +267,7 @@ describe('dispatchDatasetSearch', () => { ...@@ -267,7 +267,7 @@ describe('dispatchDatasetSearch', () => {
id: 'req_image_caption_1', id: 'req_image_caption_1',
nodeId: 'req_image_caption_1', nodeId: 'req_image_caption_1',
moduleType: FlowNodeTypeEnum.datasetSearchNode, moduleType: FlowNodeTypeEnum.datasetSearchNode,
moduleName: 'account_usage:image_parse', moduleName: 'chat:image_parse',
moduleLogo: 'core/workflow/template/datasetSearch', moduleLogo: 'core/workflow/template/datasetSearch',
runningTime: 1.5, runningTime: 1.5,
model: 'gpt-vision name', model: 'gpt-vision name',
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
"home.chat_app": "HomeChat-{{name}}", "home.chat_app": "HomeChat-{{name}}",
"home.select_tools": "Select Tool", "home.select_tools": "Select Tool",
"home.tools": "Tool: {{num}}", "home.tools": "Tool: {{num}}",
"image_parse": "Image parsing",
"in_progress": "In Progress", "in_progress": "In Progress",
"input_guide": "Input Guide", "input_guide": "Input Guide",
"input_placeholder_phone": "Please enter your question", "input_placeholder_phone": "Please enter your question",
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
"home.chat_app": "首页聊天", "home.chat_app": "首页聊天",
"home.select_tools": "选择工具", "home.select_tools": "选择工具",
"home.tools": "工具:{{num}}", "home.tools": "工具:{{num}}",
"image_parse": "图片解析",
"in_progress": "进行中", "in_progress": "进行中",
"input_guide": "输入引导", "input_guide": "输入引导",
"input_placeholder_phone": "发消息给FastGPT", "input_placeholder_phone": "发消息给FastGPT",
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
"home.chat_app": "首页聊天", "home.chat_app": "首页聊天",
"home.select_tools": "選擇工具", "home.select_tools": "選擇工具",
"home.tools": "工具:{{num}}", "home.tools": "工具:{{num}}",
"image_parse": "圖片解析",
"in_progress": "進行中", "in_progress": "進行中",
"input_guide": "輸入導引", "input_guide": "輸入導引",
"input_placeholder_phone": "請輸入問題", "input_placeholder_phone": "請輸入問題",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment