Commit 6a02d2a2 by Ctrlz Committed by GitHub

fix: concatenate answerText in dispatchRunTool function (#5451)

parent 77bf4eac
...@@ -110,7 +110,7 @@ export const dispatchRunTool = async (props: RunToolProps): Promise<RunToolRespo ...@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment