fix: concatenate answerText in dispatchRunTool function (#5451)

This commit is contained in:
Ctrlz
2025-08-13 21:05:00 +08:00
committed by GitHub
parent 77bf4eac7f
commit 6a02d2a2e5

View File

@@ -110,7 +110,7 @@ export const dispatchRunTool = async (props: RunToolProps): Promise<RunToolRespo
}, },
onMessage: ({ type, content }) => { onMessage: ({ type, content }) => {
if (workflowStreamResponse && content) { if (workflowStreamResponse && content) {
answerText = content; answerText += content;
workflowStreamResponse({ workflowStreamResponse({
event: type as unknown as SseResponseEventEnum, event: type as unknown as SseResponseEventEnum,
data: textAdaptGptResponse({ data: textAdaptGptResponse({