package com.iailab.module.ai.api.questionTemplate.dto;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import java.io.Serializable;
|
import java.util.List;
|
|
@Data
|
public class AiModelDTO implements Serializable {
|
|
@Schema(description = "编号", example = "2630")
|
private Long id;
|
|
@Schema(description = "API 秘钥编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22042")
|
private Long keyId;
|
|
@Schema(description = "模型名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
private String name;
|
|
@Schema(description = "模型标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "gpt-3.5-turbo-0125")
|
private String model;
|
|
@Schema(description = "模型平台", requiredMode = Schema.RequiredMode.REQUIRED, example = "OpenAI")
|
private String platform;
|
|
@Schema(description = "模型类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
private Integer type;
|
|
@Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
private Integer sort;
|
|
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
private Integer status;
|
|
@Schema(description = "温度参数", example = "1")
|
private Double temperature;
|
|
@Schema(description = "单条回复的最大 Token 数量", example = "4096")
|
private Integer maxTokens;
|
|
@Schema(description = "上下文的最大 Message 数量", example = "8192")
|
private Integer maxContexts;
|
|
private List<QuestionTemplateDTO> children;
|
|
}
|