refactor(llm): 将模型服务中的检查点字段类型从 Long 修改为 String

- 在 ModelServicePageReqVO 和 ModelServiceRespVO 中,将 checkPoint 字段的类型从 Long 改为 String- 这个改动可能是为了更好地处理检查点数据,避免潜在的数值溢出问题
This commit is contained in:
sunxiqing 2025-03-04 13:08:35 +08:00
parent 80c736e9b8
commit 6e6303ac96
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ public class ModelServicePageReqVO extends PageParam {
private Long fineTuningTask;
@Schema(description = "检查点使用字典llm_model_checkpoint")
private Long checkPoint;
private String checkPoint;
@Schema(description = "GPU使用字典llm_gpu_type", example = "1")
private Long gpuType;

View File

@ -28,8 +28,8 @@ public class ModelServiceRespVO {
@Schema(description = "检查点使用字典llm_model_checkpoint")
@ExcelProperty(value = "检查点使用字典llm_model_checkpoint", converter = DictConvert.class)
@DictFormat("llm_model_checkpoint") // TODO 代码优化建议设置到对应的 DictTypeConstants 枚举类中
private Long checkPoint;
// @DictFormat("llm_model_checkpoint") // TODO 代码优化建议设置到对应的 DictTypeConstants 枚举类中
private String checkPoint;
@Schema(description = "GPU使用字典llm_gpu_type", example = "1")
@ExcelProperty(value = "GPU使用字典llm_gpu_type", converter = DictConvert.class)