fix: 修复高级模式下的stt调试

This commit is contained in:
CaptainB 2024-09-09 12:22:53 +08:00 committed by 刘瑞斌
parent 7380507b55
commit f882249216
2 changed files with 5 additions and 1 deletions

View File

@ -218,6 +218,7 @@ const clickShowDebug = () => {
try { try {
workflow.is_valid() workflow.is_valid()
detail.value = { detail.value = {
...detail.value,
type: 'WORK_FLOW', type: 'WORK_FLOW',
...workflow.get_base_node()?.properties.node_data, ...workflow.get_base_node()?.properties.node_data,
work_flow: getGraphData() work_flow: getGraphData()
@ -285,6 +286,8 @@ function getDetail() {
v['properties']['noRender'] = true v['properties']['noRender'] = true
}) })
detail.value = res.data detail.value = res.data
detail.value.stt_model_id = res.data.stt_model
detail.value.tts_model_id = res.data.tts_model
saveTime.value = res.data?.update_time saveTime.value = res.data?.update_time
}) })
} }

View File

@ -217,6 +217,7 @@ import { ref, computed, onMounted } from 'vue'
import { relatedObject } from '@/utils/utils' import { relatedObject } from '@/utils/utils'
import useStore from '@/stores' import useStore from '@/stores'
import applicationApi from '@/api/application' import applicationApi from '@/api/application'
import type { Provider } from '@/api/type/model'
const { model } = useStore() const { model } = useStore()
const { const {
@ -227,7 +228,7 @@ const props = defineProps<{ nodeModel: any }>()
const sttModelOptions = ref<any>(null) const sttModelOptions = ref<any>(null)
const ttsModelOptions = ref<any>(null) const ttsModelOptions = ref<any>(null)
const providerOptions = ref<any>(null) const providerOptions = ref<Array<Provider>>([])
const form = { const form = {
name: '', name: '',