Commit cd4a7bbd by zhangxingmin

push

parent 328b0e9a
......@@ -49,6 +49,11 @@ public class ApiAiStreamController {
Map<String, Object> result = new HashMap<>();
result.put("content", content != null ? content : "");
result.put("finished", "true".equals(done));
if ("true".equals(done)) {
//完成后,清理redis缓存内容
redisUtil.deleteObject(redisKey);
}
return ResponseEntity.ok(result);
}
}
\ No newline at end of file
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