Commit 3f532884 authored by Administrator's avatar Administrator

Update AiDialoguesServiceImpl.java

parent f3254ad5
...@@ -185,7 +185,7 @@ public class AiDialoguesServiceImpl implements AiDialoguesService { ...@@ -185,7 +185,7 @@ public class AiDialoguesServiceImpl implements AiDialoguesService {
if (CollectionUtils.isNotEmpty(entities)) { if (CollectionUtils.isNotEmpty(entities)) {
Collections.shuffle(entities); // 打乱顺序 Collections.shuffle(entities); // 打乱顺序
return entities.stream() return entities.stream()
.limit(3) // 取前三个 .limit(6) // 取前三个
.map(BizAiDialoguesGuessYouAskEntity::getQuestion) .map(BizAiDialoguesGuessYouAskEntity::getQuestion)
.collect(Collectors.toList()); .collect(Collectors.toList());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment