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
},
onMessage: ({ type, content }) => {
if (workflowStreamResponse && content) {
answerText = content;
answerText += content;
workflowStreamResponse({
event: type as unknown as SseResponseEventEnum,
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