Skip to content

Commit c249f75

Browse files
perf: workflow default value
1 parent c817df3 commit c249f75

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ui/src/components/ai-chat/component/question-content/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,14 @@ import { type chatType } from '@/api/type/application'
9999
import { getImgUrl, downloadByURL } from '@/utils/common'
100100
import { getAttrsArray } from '@/utils/array'
101101
import { onMounted, computed } from 'vue'
102-
import useStore from '@/stores'
103102
const props = defineProps<{
104103
application: any
105104
chatRecord: chatType
106105
type: 'log' | 'ai-chat' | 'debug-ai-chat'
107106
}>()
108107
109108
const showAvatar = computed(() => {
110-
return props.application.show_avatar == undefined ? true : props.application.show_avatar
109+
return props.application.show_user_avatar == undefined ? true : props.application.show_user_avatar
111110
})
112111
113112
const document_list = computed(() => {

ui/src/workflow/nodes/ai-chat-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const form = {
223223
system: '',
224224
prompt: defaultPrompt,
225225
dialogue_number: 1,
226-
is_result: false,
226+
is_result: true,
227227
temperature: null,
228228
max_tokens: null,
229229
dialogue_type: 'WORKFLOW',

ui/src/workflow/nodes/reply-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const form = {
9797
reply_type: 'content',
9898
content: '',
9999
fields: [],
100-
is_result: false
100+
is_result: true,
101101
}
102102
103103
const form_data = computed({

0 commit comments

Comments
 (0)