mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00
fix: concatenate answerText in dispatchRunTool function (#5451)
This commit is contained in:
@@ -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({
|
||||||
|
Reference in New Issue
Block a user