diff --git a/ui/src/components/mk-dynamics-form/constructor/items/MultiRowConstructor.vue b/ui/src/components/mk-dynamics-form/constructor/items/MultiRowConstructor.vue
index 0c5082d5cdf..9faadc7ed74 100644
--- a/ui/src/components/mk-dynamics-form/constructor/items/MultiRowConstructor.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/items/MultiRowConstructor.vue
@@ -123,7 +123,7 @@ onMounted(() => {
-
+
diff --git a/ui/src/components/mk-dynamics-form/constructor/items/MultiSelectConstructor.vue b/ui/src/components/mk-dynamics-form/constructor/items/MultiSelectConstructor.vue
index 4dfc21a900a..caa0579cd83 100644
--- a/ui/src/components/mk-dynamics-form/constructor/items/MultiSelectConstructor.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/items/MultiSelectConstructor.vue
@@ -122,7 +122,7 @@ onMounted(() => {
-
+
diff --git a/ui/src/components/mk-dynamics-form/constructor/items/RadioCardConstructor.vue b/ui/src/components/mk-dynamics-form/constructor/items/RadioCardConstructor.vue
index f9f4a507665..5188bb893e2 100644
--- a/ui/src/components/mk-dynamics-form/constructor/items/RadioCardConstructor.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/items/RadioCardConstructor.vue
@@ -124,7 +124,7 @@ onMounted(() => {
-
+
diff --git a/ui/src/components/mk-dynamics-form/constructor/items/RadioRowConstructor.vue b/ui/src/components/mk-dynamics-form/constructor/items/RadioRowConstructor.vue
index a729fab032e..4b6f380c571 100644
--- a/ui/src/components/mk-dynamics-form/constructor/items/RadioRowConstructor.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/items/RadioRowConstructor.vue
@@ -124,7 +124,7 @@ onMounted(() => {
-
+
diff --git a/ui/src/components/mk-dynamics-form/constructor/items/SingleSelectConstructor.vue b/ui/src/components/mk-dynamics-form/constructor/items/SingleSelectConstructor.vue
index 9bad6f65fd2..6b894951688 100644
--- a/ui/src/components/mk-dynamics-form/constructor/items/SingleSelectConstructor.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/items/SingleSelectConstructor.vue
@@ -122,7 +122,7 @@ onMounted(() => {
-
+
diff --git a/ui/src/views/system/settings/authentication/components/LoginSetting.vue b/ui/src/views/system/settings/authentication/components/LoginSetting.vue
index 18f7e597f92..5126df11a87 100644
--- a/ui/src/views/system/settings/authentication/components/LoginSetting.vue
+++ b/ui/src/views/system/settings/authentication/components/LoginSetting.vue
@@ -159,7 +159,7 @@ onMounted(() => {
-
+
登录失败
@@ -177,7 +177,7 @@ onMounted(() => {
第三方用户默认角色分配
-
+
diff --git a/ui/src/workflow-canvas/config/node-data.ts b/ui/src/workflow-canvas/config/node-data.ts
index d9da5f0e87b..7db6d506e14 100644
--- a/ui/src/workflow-canvas/config/node-data.ts
+++ b/ui/src/workflow-canvas/config/node-data.ts
@@ -13,10 +13,12 @@ export const startNode = {
{ label: '当前时间', value: 'time' },
{ label: '历史聊天记录', value: 'history_context' },
{ label: '对话 ID', value: 'aiChat_id' },
+ { label: '对话用户 ID', value: 'chat_user_id' },
+ { label: '对话用户类型', value: 'chat_user_type' },
+ { label: '对话用户组', value: 'chat_user_group' },
+ { label: '对话用户', value: 'chat_user' },
],
},
- fields: [{ label: '用户问题', value: 'question' }],
- globalFields: [{ label: '当前时间', value: 'time' }],
showNode: true,
},
}
@@ -41,8 +43,6 @@ export const baseNode = {
config: {},
showNode: true,
user_input_config: { title: '用户输入' },
- api_input_field_list: [],
- chat_input_field_list: [],
user_input_field_list: [],
},
}
diff --git a/ui/src/workflow-canvas/core/node-container/index.vue b/ui/src/workflow-canvas/core/node-container/index.vue
index ecc6fa7ea06..742262a5b1a 100644
--- a/ui/src/workflow-canvas/core/node-container/index.vue
+++ b/ui/src/workflow-canvas/core/node-container/index.vue
@@ -85,7 +85,6 @@ const handleNodeMousedown = (event?: MouseEvent) => {
set(model, 'isHovered', !model.isSelected)
model.graphModel.toFront(model.id)
}
-const showicon = ref(null)
const resizeStepContainer = (nodeHeight: number) => {
if (nodeHeight > 0 && !model.virtual) {
model.setHeight(nodeHeight)
@@ -295,6 +294,8 @@ onBeforeUnmount(() => {
+
+
{{ output_title }}
@@ -303,12 +304,12 @@ onBeforeUnmount(() => {
-
+
-
+
{{ item.label }} {{ '{' + item.value + '}' }}
-
-
+
+
@@ -316,12 +317,12 @@ onBeforeUnmount(() => {
-
+
-
+
{{ item.label }} {{ '{' + item.value + '}' }}
-
-
+
+
diff --git a/ui/src/workflow-canvas/nodes/ai-chat-node/index.vue b/ui/src/workflow-canvas/nodes/ai-chat-node/index.vue
index b05c9dff003..be700264398 100644
--- a/ui/src/workflow-canvas/nodes/ai-chat-node/index.vue
+++ b/ui/src/workflow-canvas/nodes/ai-chat-node/index.vue
@@ -43,15 +43,16 @@ const formData = computed({
})
function validate() {
- return Promise.all([formData.value.model_id_type === 'reference' ? nodeCascaderRef.value?.validate() : Promise.resolve(), formRef.value?.validate()]).catch((error) =>
- Promise.reject({ node: model, errMessage: error }),
- )
+ return Promise.all([
+ formData.value.model_id_type === 'reference' ? nodeCascaderRef.value?.validate() : Promise.resolve(),
+ formRef.value?.validate(),
+ ]).catch((error) => Promise.reject({ node: model, errMessage: error }))
}
const store = useWorkflowStore(apiType)
const modelList = ref>([])
const providerOptions = ref>([])
onMounted(() => {
- set(model, 'validate', validate)
+ model.validate = validate
store.getModelList({ model_type: 'LLM' }).then((data) => {
modelList.value = data
})
@@ -86,7 +87,13 @@ onMounted(() => {
class="w-full"
placeholder="请选择变量"
/>
-
+
diff --git a/ui/src/workflow-canvas/nodes/base-node/index.vue b/ui/src/workflow-canvas/nodes/base-node/index.vue
index ee2e91eeb3f..88b24ea8ea6 100644
--- a/ui/src/workflow-canvas/nodes/base-node/index.vue
+++ b/ui/src/workflow-canvas/nodes/base-node/index.vue
@@ -195,6 +195,7 @@ onMounted(() => {
+
diff --git a/ui/src/workflow-canvas/nodes/start-node/index.vue b/ui/src/workflow-canvas/nodes/start-node/index.vue
index 629fbeb67e1..f7e05964a7b 100644
--- a/ui/src/workflow-canvas/nodes/start-node/index.vue
+++ b/ui/src/workflow-canvas/nodes/start-node/index.vue
@@ -1,8 +1,6 @@