send-stream

This commit is contained in:
wing
2025-11-22 16:55:05 +08:00
parent cc8e503f49
commit d03b87446b
10 changed files with 15 additions and 79 deletions

View File

@@ -257,7 +257,7 @@ public class AiChatMessageServiceImpl implements AiChatMessageService {
reasoningContentBuffer.append(newReasoningContent);
}
return success(new AiChatMessageSendRespVO()
.setSend(BeanUtils.toBean(userMessage, AiChatMessageSendRespVO.Message.class))
//.setSend(BeanUtils.toBean(userMessage, AiChatMessageSendRespVO.Message.class))
.setReceive(BeanUtils.toBean(assistantMessage, AiChatMessageSendRespVO.Message.class)
.setContent(StrUtil.nullToDefault(newContent, "")) // 避免 null 的 情况
.setReasoningContent(StrUtil.nullToDefault(newReasoningContent, "")) // 避免 null 的 情况