delete prompt <content>

This commit is contained in:
leon 2025-03-04 17:11:17 +08:00
parent 6e6303ac96
commit 129aa3a366

View File

@ -205,7 +205,7 @@ public class ConversationServiceImpl implements ConversationService {
}
}
}
String mess = chatReqVO.getSystemPrompt() + "<content>" + knowledgeBase.toString() + "</content>";
String mess = chatReqVO.getSystemPrompt() + "" + knowledgeBase.toString() + "";
// 查询历史记录消息 将查询出来的知识信息放入到 role = system 里面
List<String> messageHistoryList = stringRedisTemplate.opsForList().range(CHAT_HIStORY_REDIS_KEY + ":" + chatReqVO.getUuid(), 0, -1);
if (messageHistoryList != null && !messageHistoryList.isEmpty()) {
@ -384,7 +384,7 @@ public class ConversationServiceImpl implements ConversationService {
}
log.info("知识库查询完成,获取到的信息: {}", knowledgeBase.toString());
}
String mess = chatReqVO.getSystemPrompt() + "<content>" + knowledgeBase.toString() + "</content>";
String mess = chatReqVO.getSystemPrompt() + "" + knowledgeBase.toString() + "";
// 查询历史记录消息并将查询出来的知识信息放入到 role = system 的消息中
List<String> messageHistoryList = stringRedisTemplate.opsForList().range(CHAT_HIStORY_REDIS_KEY + ":" + chatReqVO.getUuid(), 0, -1);
if (messageHistoryList != null && !messageHistoryList.isEmpty()) {