fix(canvas): 模型生成 - 保留安全的上游失败原因并展示到用户卡片

This commit is contained in:
ddCat committed 2026-09-22 10:48:25 +08:00
1 parent 5ea9466bb4
commit c8a91fd2e9
8 files changed
+186 -21

No files matched your search

+1 -1
View File
@@ -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
}