|
@@ -342,6 +342,7 @@ public class GRPCController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
+ needAdd = false;
|
|
|
// throw new RuntimeException(e);
|
|
|
log.error("处理大模型推理异常,异常信息为{}", JSON.toJSONString(e));
|
|
|
//出现异常 给前端返回一句话
|
|
@@ -351,7 +352,8 @@ public class GRPCController extends BaseController {
|
|
|
outputStream.write(errMsg.getBytes());
|
|
|
outputStream.flush();
|
|
|
} catch (IOException ex) {
|
|
|
- throw new RuntimeException(ex);
|
|
|
+// throw new RuntimeException(ex);
|
|
|
+ log.error("输出异常信义的时候又被中断了,异常信息为{}", JSON.toJSONString(ex));
|
|
|
}
|
|
|
} finally {
|
|
|
// log.info("sessionId是{}\n决策最终要保存的数据是{}", sessionId, JSON.toJSONString(resultData));
|