File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed
components/ai-chat/component/knowledge-source-component Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 6666 </div >
6767 </div >
6868 </div >
69+ <div v-if =" errStepMsg" class =" card-never border-r-6 mb-12" >
70+ <h5 class =" p-8-12" >
71+ {{ $t('chat.executionDetails.errLog') }}
72+ </h5 >
73+ <div class =" p-8-12 border-t-dashed lighter" >
74+ <div >
75+ <span >{{ errStepMsg }}</span >
76+ </div >
77+ </div >
78+ </div >
6979 </template >
7080 </div >
7181</template >
@@ -80,6 +90,14 @@ const props = defineProps<{
8090 appType? : string
8191}>()
8292
93+ const errStepMsg = computed (() => {
94+ const err_step = props .detail ?.find ((item ) => item .status === 500 )
95+ if (err_step ) {
96+ return ` ${err_step .step_type }: ${err_step .err_message } `
97+ }
98+ return undefined
99+ })
100+
83101const messageList = computed (() => {
84102 const chat_step = props .detail ?.find ((item ) => item .step_type == ' chat_step' )
85103 if (chat_step ) {
@@ -144,5 +162,4 @@ const AiResponse = computed(() => {
144162 return messages .slice (messages .length - 1 , messages .length )
145163})
146164 </script >
147- <style lang="scss" scoped>
148- </style >
165+ <style lang="scss" scoped></style >
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export default {
127127 paragraphRules : 'Segmentation Rules' ,
128128 writeContent : 'Content Written' ,
129129 cancel : 'Cancel Execution' ,
130+ errLog : 'Error Log' ,
130131 cancelExecutionTip : 'Are you sure you want to cancel the selected task? ' ,
131132 } ,
132133 KnowledgeSource : {
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ export default {
124124 paragraphRules : '分段规则' ,
125125 writeContent : '写入内容' ,
126126 cancel : '取消执行' ,
127+ errLog : '错误日志' ,
127128 cancelExecutionTip : '确定取消所选的任务?' ,
128129 } ,
129130 KnowledgeSource : {
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ export default {
125125 paragraphRules : '分段規則' ,
126126 writeContent : '寫入內容' ,
127127 cancel : '取消執行' ,
128+ errLog : '錯誤日誌' ,
128129 cancelExecutionTip : '確定取消所選的任務?' ,
129130 } ,
130131 KnowledgeSource : {
You can’t perform that action at this time.
0 commit comments