Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
</div>
</div>
</div>
<div v-if="errStepMsg" class="card-never border-r-6 mb-12">
<h5 class="p-8-12">
{{ $t('chat.executionDetails.errLog') }}
</h5>
<div class="p-8-12 border-t-dashed lighter">
<div>
<span>{{ errStepMsg }}</span>
</div>
</div>
</div>
</template>
</div>
</template>
Expand All @@ -80,6 +90,14 @@ const props = defineProps<{
appType?: string
}>()

const errStepMsg = computed(() => {
const err_step = props.detail?.find((item) => item.status === 500)
if (err_step) {
return `${err_step.step_type}: ${err_step.err_message}`
}
return undefined
})

const messageList = computed(() => {
const chat_step = props.detail?.find((item) => item.step_type == 'chat_step')
if (chat_step) {
Expand Down Expand Up @@ -144,5 +162,4 @@ const AiResponse = computed(() => {
return messages.slice(messages.length - 1, messages.length)
})
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
1 change: 1 addition & 0 deletions ui/src/locales/lang/en-US/ai-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export default {
paragraphRules: 'Segmentation Rules',
writeContent: 'Content Written',
cancel: 'Cancel Execution',
errLog: 'Error Log',
cancelExecutionTip: 'Are you sure you want to cancel the selected task? ',
},
KnowledgeSource: {
Expand Down
1 change: 1 addition & 0 deletions ui/src/locales/lang/zh-CN/ai-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default {
paragraphRules: '分段规则',
writeContent: '写入内容',
cancel: '取消执行',
errLog: '错误日志',
cancelExecutionTip: '确定取消所选的任务?',
},
KnowledgeSource: {
Expand Down
1 change: 1 addition & 0 deletions ui/src/locales/lang/zh-Hant/ai-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default {
paragraphRules: '分段規則',
writeContent: '寫入內容',
cancel: '取消執行',
errLog: '錯誤日誌',
cancelExecutionTip: '確定取消所選的任務?',
},
KnowledgeSource: {
Expand Down