|
|
@@ -35,7 +35,6 @@ public class FreeChatTemplate implements BaseTemplate{ |
|
|
|
} |
|
|
|
redisTemplate.opsForList().rightPush("group:device:" + devId,content); |
|
|
|
List<String> context = redisTemplate.opsForList().range("group:device:" + devId,0,size); |
|
|
|
context.add(content); |
|
|
|
String prefix = "你的任务是[针对给定的文段提出" + (content.length() /100 + 1 ) + "个问题并回答]。文段为:[\""; |
|
|
|
String suffix = "\"]。输出为一个JSON数组[{}],每个元素是一个JSON:{“question”:,”answer”:}。不要给出任何解释说明。"; |
|
|
|
log.info(prefix + content + suffix); |
|
|
|