fix: avoid inferred retry failure reason

This commit is contained in:
temp
2026-08-24 14:48:37 +08:00
parent a67761e843
commit b47f8df3b0
2 changed files with 4 additions and 5 deletions
@@ -143,8 +143,7 @@ func einoUserFacingRunError(err error) einoRunUserError {
}
out.rawLastError = strings.TrimSpace(lastErr.Error())
if isEinoShouldRetryOutputRejected(lastErr) {
out.kind = "empty_model_output"
out.summary = "模型输出被重试策略拒绝;常见原因是空内容或缺少有效输出。"
out.kind = "model_output_rejected"
out.message = formatEinoRetryExhaustedMessage(out.rawLastError, retryErr.TotalRetries)
return out
}