diff --git a/ui/src/components/ai-chat/LogOperationButton.vue b/ui/src/components/ai-chat/LogOperationButton.vue index 7a6dcb74d..4e3296c3c 100644 --- a/ui/src/components/ai-chat/LogOperationButton.vue +++ b/ui/src/components/ai-chat/LogOperationButton.vue @@ -5,6 +5,15 @@
+ + + + + + + + + @@ -38,6 +47,8 @@ + +
diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 6cfc3e58d..83e29bcbf 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -108,7 +108,11 @@
- +
@@ -127,6 +131,7 @@
- -
- - - - - -
@@ -159,19 +156,22 @@ :maxlength="100000" @keydown.enter="sendChatHandle($event)" /> -
- - - - - - - - - - -
-
+ +
+ + + + + + + + + + + + + + -
- - diff --git a/ui/src/workflow/nodes/base-node/index.vue b/ui/src/workflow/nodes/base-node/index.vue index 19c0e6fc9..d618d4a2a 100644 --- a/ui/src/workflow/nodes/base-node/index.vue +++ b/ui/src/workflow/nodes/base-node/index.vue @@ -50,164 +50,16 @@ - + - - - - - -
- - {{ item.name }} - 公用 - -
- - - -
- - -
- - {{ item.name }} - {{ - $t('views.application.applicationForm.form.aiModel.unavailable') - }} -
- - - -
-
-
-
- - - - - - - - - -
- - {{ item.name }} - 公用 - -
- - - -
- - -
- - {{ item.name }} - {{ - $t('views.application.applicationForm.form.aiModel.unavailable') - }} -
- - - -
-
-
-
- -
- 全局变量 - - 添加 - -
- +
+
输入变量
+ + 添加 + +
+ @@ -248,6 +100,152 @@ + + + + + +
+ + {{ item.name }} + 公用 + +
+ + + +
+ + +
+ + {{ item.name }} + {{ + $t('views.application.applicationForm.form.aiModel.unavailable') + }} +
+ + + +
+
+
+
+ + + + 浏览器播放(免费) + TTS模型 + + + + +
+ + {{ item.name }} + 公用 + +
+ + + +
+ + +
+ + {{ item.name }} + {{ + $t('views.application.applicationForm.form.aiModel.unavailable') + }} +
+ + + +
+
+
+
+ + @@ -335,28 +333,21 @@ const validate = () => { } function getProvider() { - model - .asyncGetProvider() - .then((res: any) => { - providerOptions.value = res?.data - }) + model.asyncGetProvider().then((res: any) => { + providerOptions.value = res?.data + }) } - function getSTTModel() { - applicationApi - .getApplicationSTTModel(id) - .then((res: any) => { - sttModelOptions.value = groupBy(res?.data, 'provider') - }) + applicationApi.getApplicationSTTModel(id).then((res: any) => { + sttModelOptions.value = groupBy(res?.data, 'provider') + }) } function getTTSModel() { - applicationApi - .getApplicationTTSModel(id) - .then((res: any) => { - ttsModelOptions.value = groupBy(res?.data, 'provider') - }) + applicationApi.getApplicationTTSModel(id).then((res: any) => { + ttsModelOptions.value = groupBy(res?.data, 'provider') + }) } const currentIndex = ref(null) @@ -391,7 +382,6 @@ function refreshFieldList(data: any) { FieldFormDialogRef.value.close() } - onMounted(() => { set(props.nodeModel, 'validate', validate) if (props.nodeModel.properties.input_field_list) { @@ -403,7 +393,6 @@ onMounted(() => { getProvider() getTTSModel() getSTTModel() - })