mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
【解决todo】AI chat 返回的 message 类型不正确
This commit is contained in:
parent
3633c7415b
commit
19bd0c66ff
@ -132,7 +132,7 @@ public class AiChatServiceImpl implements AiChatService {
|
|||||||
contentBuffer.append(newContent);
|
contentBuffer.append(newContent);
|
||||||
// 响应结果
|
// 响应结果
|
||||||
return new AiChatMessageSendRespVO().setSend(BeanUtils.toBean(userMessage, AiChatMessageSendRespVO.Message.class))
|
return new AiChatMessageSendRespVO().setSend(BeanUtils.toBean(userMessage, AiChatMessageSendRespVO.Message.class))
|
||||||
.setReceive(BeanUtils.toBean(userMessage, AiChatMessageSendRespVO.Message.class).setContent(newContent));
|
.setReceive(BeanUtils.toBean(assistantMessage, AiChatMessageSendRespVO.Message.class).setContent(newContent));
|
||||||
}).doOnComplete(() -> {
|
}).doOnComplete(() -> {
|
||||||
chatMessageMapper.updateById(new AiChatMessageDO().setId(assistantMessage.getId()).setContent(contentBuffer.toString()));
|
chatMessageMapper.updateById(new AiChatMessageDO().setId(assistantMessage.getId()).setContent(contentBuffer.toString()));
|
||||||
}).doOnError(throwable -> {
|
}).doOnError(throwable -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user