|
@@ -89,9 +89,10 @@ public class KimiChatServiceImpl extends ServiceImpl<KimiChatMapper, KimiChat> i
|
|
|
while ((line = reader.readLine()) != null) {
|
|
|
log.info("流数据 -- {} ", line);
|
|
|
if (!TextUtils.isEmpty(line)) {
|
|
|
+ line = line.substring(6);
|
|
|
sseService.sendData( groupId, line );
|
|
|
- if (!"data: [DONE]".equals(line) && !line.isEmpty()) {
|
|
|
- stream2db(line.substring(6), groupId);
|
|
|
+ if (!"[DONE]".equals(line) && !line.isEmpty()) {
|
|
|
+ stream2db(line, groupId);
|
|
|
}
|
|
|
}
|
|
|
}
|