|
@@ -1177,7 +1177,11 @@ public class RyTask
|
|
|
this.addChatRecordByDeviceErr(tXinyiWarningRecord, tXinyiIndustry, normConfig);
|
|
|
}else {
|
|
|
//继续调用大模型prompt
|
|
|
- this.askBigModelForYC(tXinyiWarningRecord, tXinyiIndustry, normConfig, chartsDataList, date, yjHour, nowDate);
|
|
|
+ try {
|
|
|
+ this.askBigModelForYC(tXinyiWarningRecord, tXinyiIndustry, normConfig, chartsDataList, date, yjHour, nowDate);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("预测完成调用大模型获取解决方案时异常,异常信息为{}", JSON.toJSONString(e));
|
|
|
+ }
|
|
|
}
|
|
|
}else{
|
|
|
log.info("{}:之前已经有过告警记录了,且还是继续报警,无需重复添加报警,但是决策仍然要调用", category);
|
|
@@ -1195,7 +1199,11 @@ public class RyTask
|
|
|
//更新数据库
|
|
|
this.xinyiWarningRecordMapper.updateTXinyiWarningRecord(xinyiWarningRecord);
|
|
|
//继续调用决策
|
|
|
- this.askBigModelForYC(xinyiWarningRecord, tXinyiIndustry, normConfig, chartsDataList, date, yjHour, nowDate);
|
|
|
+ try {
|
|
|
+ this.askBigModelForYC(xinyiWarningRecord, tXinyiIndustry, normConfig, chartsDataList, date, yjHour, nowDate);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("预测完成调用大模型获取解决方案时异常,异常信息为{}", JSON.toJSONString(e));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|