package org.jk.rag.domain.bo;

import org.jk.common.core.validate.AddGroup;
import org.jk.common.core.validate.EditGroup;
import org.jk.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.jk.rag.domain.ModelConfig;

/**
 * 模型配置业务对象 model_config
 *
 * @author Lion Li
 * @date 2026-01-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ModelConfig.class, reverseConvertGenerate = false)
public class ModelConfigBo extends BaseEntity {

    /**
     * 主键ID，雪花算法生成
     */
    @NotNull(message = "主键ID，雪花算法生成不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模型
     */
    @NotBlank(message = "模型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * apikey
     */
    //@NotBlank(message = "apikey不能为空", groups = { AddGroup.class, EditGroup.class })
    private String apiKey;

    /**
     * url
     */
    private String url;

    /**
     * 最大token
     */
    @NotBlank(message = "最大token不能为空", groups = { AddGroup.class, EditGroup.class })
    private String maxToken;

    /**
     * 模型类型
     */
    @NotBlank(message = "模型类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelType;

    /**
     * 绑定模型
     */
    private String bindingModel;

    private String embeddingModel;

    private String flg;

    private String rerankModel;

}
