应用中心增加模型区分类型

This commit is contained in:
limin 2025-01-03 16:58:22 +08:00
parent 7ff8df322d
commit 4cab32f083
4 changed files with 14 additions and 0 deletions

View File

@ -87,4 +87,6 @@ public class ApplicationRespVO {
@Schema(description = "创建人")
private String creatorName;
@Schema(description = "模型类型0普通1官方")
private Integer appModelType;
}

View File

@ -62,4 +62,7 @@ public class ApplicationSaveReqVO {
@Schema(description = "创建人")
private String creatorName;
@Schema(description = "模型类型0普通1官方")
private Integer appModelType;
}

View File

@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.llm.dal.dataobject.application;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
@ -86,4 +87,9 @@ public class ApplicationDO extends BaseDO {
*/
private String prompt;
/**
* 模型类型
*/
private Integer appModelType;
}

View File

@ -89,6 +89,9 @@ public class ApplicationServiceImpl implements ApplicationService {
List<LabelDO> labelDOS = labelMapper.selectList(wrapper);
List<String> collect = labelDOS.stream().map(LabelDO::getLabelName).collect(Collectors.toList());
bean.setAppLabelName(String.join(",", collect));
if (applicationDO.getAppModelType() == 0){
}
}
return bean;
}