From f5760650524225a1870f89d8c132861576f2c223 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 25 Sep 2024 10:09:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=92=E8=89=B2=E8=AE=BE=E5=AE=9A?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/workflow/nodes/ai-chat-node/index.vue | 11 ++++++++--- ui/src/workflow/nodes/question-node/index.vue | 11 ++++++++--- ui/src/workflow/nodes/reranker-node/index.vue | 4 ++-- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ui/src/workflow/nodes/ai-chat-node/index.vue b/ui/src/workflow/nodes/ai-chat-node/index.vue index d9781713e..3a5e4a0f1 100644 --- a/ui/src/workflow/nodes/ai-chat-node/index.vue +++ b/ui/src/workflow/nodes/ai-chat-node/index.vue @@ -109,11 +109,12 @@ - { } } +function submitSystemDialog(val: string) { + set(props.nodeModel.properties.node_data, 'system', val) +} + function submitDialog(val: string) { set(props.nodeModel.properties.node_data, 'prompt', val) } diff --git a/ui/src/workflow/nodes/question-node/index.vue b/ui/src/workflow/nodes/question-node/index.vue index e96fcf830..c6a9918f9 100644 --- a/ui/src/workflow/nodes/question-node/index.vue +++ b/ui/src/workflow/nodes/question-node/index.vue @@ -106,11 +106,12 @@ - { function submitDialog(val: string) { set(props.nodeModel.properties.node_data, 'prompt', val) } + +function submitSystemDialog(val: string) { + set(props.nodeModel.properties.node_data, 'system', val) +} const { params: { id } } = app.config.globalProperties.$route as any diff --git a/ui/src/workflow/nodes/reranker-node/index.vue b/ui/src/workflow/nodes/reranker-node/index.vue index 82f964fa3..731c6d74d 100644 --- a/ui/src/workflow/nodes/reranker-node/index.vue +++ b/ui/src/workflow/nodes/reranker-node/index.vue @@ -117,14 +117,14 @@ >