20 小时以前 c9172960bda01fca866969cc6ec4ca126eb97104
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package cn.iocoder.yudao.module.ai.controller.admin.model.vo.model;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
@Schema(description = "管理后台 - AI 模型新增/修改 Request VO")
@Data
public class AiModelSaveReqVO {
 
    @Schema(description = "编号", example = "1")
    private Long id;
 
    @Schema(description = "API 密钥编号", example = "1")
    @NotNull(message = "API 密钥不能为空")
    private Long keyId;
 
    @Schema(description = "模型名字", example = "通义千问")
    @NotEmpty(message = "模型名字不能为空")
    private String name;
 
    @Schema(description = "模型标识", example = "qwen-plus")
    @NotEmpty(message = "模型标识不能为空")
    private String model;
 
    @Schema(description = "模型平台", example = "TongYi")
    @NotEmpty(message = "模型平台不能为空")
    private String platform;
 
    @Schema(description = "模型类型", example = "1")
    @NotNull(message = "模型类型不能为空")
    private Integer type;
 
    @Schema(description = "排序", example = "0")
    private Integer sort;
 
    @Schema(description = "状态", example = "0")
    private Integer status;
 
    @Schema(description = "温度")
    private Double temperature;
 
    @Schema(description = "最大 Token 数")
    private Integer maxTokens;
 
    @Schema(description = "最大上下文数")
    private Integer maxContexts;
 
}