perf: workflow default value
This commit is contained in:
parent
c817df393f
commit
c249f7501f
@ -99,7 +99,6 @@ import { type chatType } from '@/api/type/application'
|
|||||||
import { getImgUrl, downloadByURL } from '@/utils/common'
|
import { getImgUrl, downloadByURL } from '@/utils/common'
|
||||||
import { getAttrsArray } from '@/utils/array'
|
import { getAttrsArray } from '@/utils/array'
|
||||||
import { onMounted, computed } from 'vue'
|
import { onMounted, computed } from 'vue'
|
||||||
import useStore from '@/stores'
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
application: any
|
application: any
|
||||||
chatRecord: chatType
|
chatRecord: chatType
|
||||||
@ -107,7 +106,7 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
const showAvatar = computed(() => {
|
const showAvatar = computed(() => {
|
||||||
return props.application.show_avatar == undefined ? true : props.application.show_avatar
|
return props.application.show_user_avatar == undefined ? true : props.application.show_user_avatar
|
||||||
})
|
})
|
||||||
|
|
||||||
const document_list = computed(() => {
|
const document_list = computed(() => {
|
||||||
|
|||||||
@ -223,7 +223,7 @@ const form = {
|
|||||||
system: '',
|
system: '',
|
||||||
prompt: defaultPrompt,
|
prompt: defaultPrompt,
|
||||||
dialogue_number: 1,
|
dialogue_number: 1,
|
||||||
is_result: false,
|
is_result: true,
|
||||||
temperature: null,
|
temperature: null,
|
||||||
max_tokens: null,
|
max_tokens: null,
|
||||||
dialogue_type: 'WORKFLOW',
|
dialogue_type: 'WORKFLOW',
|
||||||
|
|||||||
@ -97,7 +97,7 @@ const form = {
|
|||||||
reply_type: 'content',
|
reply_type: 'content',
|
||||||
content: '',
|
content: '',
|
||||||
fields: [],
|
fields: [],
|
||||||
is_result: false
|
is_result: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
const form_data = computed({
|
const form_data = computed({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user