Commit a6da0e92 authored by alex yao's avatar alex yao

fix:null

parent ed670bcc
......@@ -530,8 +530,10 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
logger.error("LLM Error,code:{}", result.getCode());
throw new BusinessException("获取总结摘要失败");
}
String message = result.getMessage();
summary.append(message);
if (StringUtils.isNotBlank(result.getMessage())) {
String message = result.getMessage();
summary.append(message);
}
}
bufferedReader.close();
return summary.toString();
......@@ -591,8 +593,10 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
logger.error("LLM Error,code:{}", result.getCode());
throw new BusinessException("获取核心观点失败");
}
String message = result.getMessage();
corePoint.append(message);
if (StringUtils.isNotBlank(result.getMessage())) {
String message = result.getMessage();
corePoint.append(message);
}
}
bufferedReader.close();
return corePoint.toString();
......
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