修改已知问题

This commit is contained in:
chenxudong 2025-04-21 09:03:09 +08:00
parent 0749e8e543
commit 98dd3e1938
1 changed files with 1 additions and 1 deletions

View File

@ -191,8 +191,8 @@ public class ChatService {
UserLoginInfo userLoginInfo = new UserLoginInfo();
userLoginInfo.setUserId(queryDTO.getUserId());
UserThreadLocal.set(userLoginInfo);
UserThreadLocal.remove();
aiQuestionRecordMapper.insert(record);
UserThreadLocal.remove();
return ChatClient.builder(model)
.defaultSystem("必须用中文回答")
.defaultAdvisors(messageChatMemoryAdvisor, questionAnswerAdvisor)