Add files via upload

This commit is contained in:
公明
2026-04-24 01:55:59 +08:00
committed by GitHub
parent d17da2a47d
commit 96d11087f9
5 changed files with 123 additions and 20 deletions
+11
View File
@@ -230,6 +230,17 @@ attemptLoop:
continue
}
if ev.Err != nil {
if errors.Is(ev.Err, context.DeadlineExceeded) {
flushAllPendingAsFailed(ev.Err)
if progress != nil {
progress("error", ev.Err.Error(), map[string]interface{}{
"conversationId": conversationID,
"source": "eino",
"errorKind": "timeout",
})
}
return nil, ev.Err
}
// context.Canceled 是唯一应当直接终止编排的错误(用户关闭页面、主动停止等)。
if errors.Is(ev.Err, context.Canceled) {
flushAllPendingAsFailed(ev.Err)