REQ-3045: 减少响应大小

This commit is contained in:
yanglin 2024-10-24 10:57:37 +08:00
parent ac63ee6025
commit 2773abef15

View File

@ -25,7 +25,7 @@ public class ModelVersion {
private final Integer versionNumber;
public static ModelVersion of(Integer version) {
// attach?
// attack?
if (version != null && version > 500)
throw new ServiceException("model version is too large");
if (version == null) version = Integer.MIN_VALUE;