From 7af880f1dbeed92cc1c1a168d87ebaa5debb438f Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 18 Sep 2025 14:55:03 +0800 Subject: [PATCH] feat: Consciousness recognition node --- .../ExecutionDetailCard.vue | 2 +- .../lang/en-US/views/application-workflow.ts | 1 + .../locales/lang/en-US/views/application.ts | 1 + .../lang/zh-CN/views/application-workflow.ts | 1 + .../locales/lang/zh-CN/views/application.ts | 1 + .../zh-Hant/views/application-workflow.ts | 1 + .../locales/lang/zh-Hant/views/application.ts | 1 + .../component/GeneratePromptDialog.vue | 72 +++++++++---------- ui/src/workflow/common/data.ts | 2 +- 9 files changed, 42 insertions(+), 40 deletions(-) diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue index 30af61e54..9c8dbfae5 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue @@ -173,7 +173,7 @@ v-if=" data.type == WorkflowType.AiChat || data.type == WorkflowType.Question || - data.type == WorkflowType.Application + data.type == WorkflowType.Application || data.type == WorkflowType.IntentNode " >
diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts index af961dbcf..b9436061f 100644 --- a/ui/src/locales/lang/en-US/views/application-workflow.ts +++ b/ui/src/locales/lang/en-US/views/application-workflow.ts @@ -329,6 +329,7 @@ export default { }, intentNode: { label: 'IntentNode', + text: 'Match user questions with user-defined intent classifications', other: 'other', placeholder: 'Please choose a classification option', classify: { diff --git a/ui/src/locales/lang/en-US/views/application.ts b/ui/src/locales/lang/en-US/views/application.ts index d69f4fe6b..2b922c698 100644 --- a/ui/src/locales/lang/en-US/views/application.ts +++ b/ui/src/locales/lang/en-US/views/application.ts @@ -141,6 +141,7 @@ export default { continue: 'Continue Generating', replace: 'Replace', exit: 'Are you sure you want to exit and discard the AI-generated content?', + loading: 'Generating...', }, dialog: { addKnowledge: 'Add Related Knowledge', diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index ad2b6ece9..1cfbb4a61 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -329,6 +329,7 @@ export default { }, intentNode: { label: '意图识别', + text: '将用户问题与用户预设的意图分类进行匹配', other: '其他', placeholder: '请选择分类项', classify: { diff --git a/ui/src/locales/lang/zh-CN/views/application.ts b/ui/src/locales/lang/zh-CN/views/application.ts index 9d6bb1ab8..d3a878ef6 100644 --- a/ui/src/locales/lang/zh-CN/views/application.ts +++ b/ui/src/locales/lang/zh-CN/views/application.ts @@ -133,6 +133,7 @@ export default { continue: '继续生成', replace: '替换', exit: '确认退出并舍弃 AI 生成的内容吗?', + loading: '生成中...', }, dialog: { addKnowledge: '添加关联知识库', diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts index f28097bc3..4927a9ac3 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -322,6 +322,7 @@ export default { }, intentNode: { label: '意圖識別', + text: '將用戶問題與用戶預設的意圖分類進行匹配', other: '其他', placeholder: '請選擇分類項', classify: { diff --git a/ui/src/locales/lang/zh-Hant/views/application.ts b/ui/src/locales/lang/zh-Hant/views/application.ts index ef0634068..7283ca9ab 100644 --- a/ui/src/locales/lang/zh-Hant/views/application.ts +++ b/ui/src/locales/lang/zh-Hant/views/application.ts @@ -132,6 +132,7 @@ export default { continue: '繼續生成', replace: '替換', exit: '確認退出並捨棄 AI 生成的內容嗎?', + loading: '生成中...', }, dialog: { addKnowledge: '新增關聯知識庫', diff --git a/ui/src/views/application/component/GeneratePromptDialog.vue b/ui/src/views/application/component/GeneratePromptDialog.vue index 7f535de6e..80d1f4962 100644 --- a/ui/src/views/application/component/GeneratePromptDialog.vue +++ b/ui/src/views/application/component/GeneratePromptDialog.vue @@ -24,7 +24,7 @@

- {{ $t('chat.tip.answerLoading') }} + {{ $t('views.application.generateDialog.loading') }}

@@ -33,11 +33,18 @@

- {{ $t('views.application.generateDialog.replace') }} + + {{ $t('views.application.generateDialog.replace') }} + {{ $t('views.application.generateDialog.remake') }}
+
+ + {{ $t('views.application.generateDialog.continue') }} + +
@@ -49,12 +56,7 @@ {{ $t('views.application.generateDialog.stop') }} -
- - - {{ $t('views.application.generateDialog.continue') }} - -
+
- +
@@ -88,7 +94,7 @@