From 1f9e1cb1c72918170f1b62e307219478401d4002 Mon Sep 17 00:00:00 2001 From: Zhj Date: Mon, 8 Sep 2025 21:16:00 +0800 Subject: [PATCH] fix: event must be capitalized when streaming (#2030) --- backend/application/workflow/workflow.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/application/workflow/workflow.go b/backend/application/workflow/workflow.go index d6bd17f2..9314388e 100644 --- a/backend/application/workflow/workflow.go +++ b/backend/application/workflow/workflow.go @@ -1322,10 +1322,10 @@ func mergeBatchModeNodes(parent, inner *workflow.NodeResult) *workflow.NodeResul type StreamRunEventType string const ( - DoneEvent StreamRunEventType = "done" - MessageEvent StreamRunEventType = "message" - ErrEvent StreamRunEventType = "error" - InterruptEvent StreamRunEventType = "interrupt" + DoneEvent StreamRunEventType = "Done" + MessageEvent StreamRunEventType = "Message" + ErrEvent StreamRunEventType = "Error" + InterruptEvent StreamRunEventType = "Interrupt" ) func convertStreamRunEvent(workflowID int64) func(msg *entity.Message) (res *workflow.OpenAPIStreamRunFlowResponse, err error) {