refactor(yudao-module-llm): 优化 AigcModelDeployVO 类
- 移除了未使用的导入语句 - 注释掉了 JsonDeserialize 注解 - 添加了 logPath 字段 - 调整了类的结构和格式
This commit is contained in:
parent
eb98f039be
commit
336f645637
@ -1,47 +1,40 @@
|
||||
package cn.iocoder.yudao.module.llm.service.http.vo;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.iocoder.yudao.module.llm.handler.AigcCustomDateTimeDeserializer;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class AigcModelDeployVO {
|
||||
/*
|
||||
{
|
||||
"updated_at": "2025-01-09 13:32:10.8013027+00:00",
|
||||
"model_id": 2,
|
||||
"created_at": "2025-01-09 13:32:10.8013027+00:00",
|
||||
"status": "pending",
|
||||
"inferred_type": "cpu",
|
||||
"gpu": 0,
|
||||
"quantization": "float16",
|
||||
"deployment_name": "test-2",
|
||||
"deleted_at": "2025-01-09 13:32:18.705719834+00:00",
|
||||
"id": 4,
|
||||
"model_path": "/data/base-model/test",
|
||||
"replicas": 1,
|
||||
"label": "cpu-aigc-model",
|
||||
"cpu": 1,
|
||||
"vllm": 0
|
||||
}*/
|
||||
/*
|
||||
{
|
||||
"updated_at": "2025-01-09 13:32:10.8013027+00:00",
|
||||
"model_id": 2,
|
||||
"created_at": "2025-01-09 13:32:10.8013027+00:00",
|
||||
"status": "pending",
|
||||
"inferred_type": "cpu",
|
||||
"gpu": 0,
|
||||
"quantization": "float16",
|
||||
"deployment_name": "test-2",
|
||||
"deleted_at": "2025-01-09 13:32:18.705719834+00:00",
|
||||
"id": 4,
|
||||
"model_path": "/data/base-model/test",
|
||||
"replicas": 1,
|
||||
"label": "cpu-aigc-model",
|
||||
"cpu": 1,
|
||||
"vllm": 0
|
||||
}*/
|
||||
@JsonProperty("updated_at")
|
||||
// @JsonDeserialize(using = AigcCustomDateTimeDeserializer.class)
|
||||
// @JsonDeserialize(using = AigcCustomDateTimeDeserializer.class)
|
||||
private String updatedAt;
|
||||
@JsonProperty("model_id")
|
||||
private Integer modeId;
|
||||
@JsonProperty("created_at")
|
||||
// @JsonDeserialize(using = AigcCustomDateTimeDeserializer.class)
|
||||
// @JsonDeserialize(using = AigcCustomDateTimeDeserializer.class)
|
||||
private String createdAt;
|
||||
private String status;
|
||||
@JsonProperty("inferred_type")
|
||||
@ -51,11 +44,13 @@ public class AigcModelDeployVO {
|
||||
@JsonProperty("deployment_name")
|
||||
private String deploymentName;
|
||||
@JsonProperty("deleted_at")
|
||||
// @JsonDeserialize(using = AigcCustomDateTimeDeserializer.class)
|
||||
// @JsonDeserialize(using = AigcCustomDateTimeDeserializer.class)
|
||||
private String deletedAt;
|
||||
private Integer id;
|
||||
@JsonProperty("model_path")
|
||||
private String modelPath;
|
||||
@JsonProperty("log_path")
|
||||
private String logPath;
|
||||
private Integer replicas;
|
||||
private String label;
|
||||
private Integer cpu;
|
||||
|
Loading…
x
Reference in New Issue
Block a user