Commit a6da0e92 authored by alex yao's avatar alex yao

fix:null

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