mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
perf: auto add empty response (#3113)
This commit is contained in:
@@ -699,5 +699,13 @@ export const mergeAssistantResponseAnswerText = (response: AIChatItemValueItemTy
|
||||
result.push(item);
|
||||
}
|
||||
|
||||
// If result is empty, auto add a text message
|
||||
if (result.length === 0) {
|
||||
result.push({
|
||||
type: ChatItemValueTypeEnum.text,
|
||||
text: { content: '' }
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
Reference in New Issue
Block a user