Skip to content

Commit

Permalink
fix: 修复高级模式下的stt调试
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Sep 9, 2024
1 parent 7380507 commit c4a8cd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ui/src/views/application-workflow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const clickShowDebug = () => {
try {
workflow.is_valid()
detail.value = {
...detail.value,
type: 'WORK_FLOW',
...workflow.get_base_node()?.properties.node_data,
work_flow: getGraphData()
Expand Down Expand Up @@ -285,6 +286,8 @@ function getDetail() {
v['properties']['noRender'] = true
})
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
})
}
Expand Down
3 changes: 2 additions & 1 deletion ui/src/workflow/nodes/base-node/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ import { ref, computed, onMounted } from 'vue'
import { relatedObject } from '@/utils/utils'
import useStore from '@/stores'
import applicationApi from '@/api/application'
import type { Provider } from '@/api/type/model'
const { model } = useStore()
const {
Expand All @@ -227,7 +228,7 @@ const props = defineProps<{ nodeModel: any }>()
const sttModelOptions = ref<any>(null)
const ttsModelOptions = ref<any>(null)
const providerOptions = ref<any>(null)
const providerOptions = ref<Array<Provider>>([])
const form = {
name: '',
Expand Down

0 comments on commit c4a8cd4

Please sign in to comment.