fix(canvas): 模型生成 - 保留安全的上游失败原因并展示到用户卡片
This commit is contained in:
1 parent
5ea9466bb4
commit
c8a91fd2e9
8 files changed
+186
-21
No files matched your search
@@ -995,7 +995,7 @@ func (s *Service) enrichAPICallLogFailureSummary(log *model.ApiCallLog, response
|
||||
Body: string(responseBody),
|
||||
})
|
||||
detail := strings.TrimSpace(log.Error)
|
||||
if detail == "" || detail == userMessage {
|
||||
if detail == "" || detail == userMessage || strings.Contains(userMessage, ";上游:"+detail) {
|
||||
log.Error = userMessage
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user