feat: 枚举优化
This commit is contained in:
@@ -23,6 +23,15 @@ public enum AiModelTypeEnum implements ArrayValuable<String> {
|
||||
// ========== 数字人模型 ==========
|
||||
DIGITAL_HUMAN_LATENTSYNC("latentsync", "LatentSync", AiPlatformEnum.DIGITAL_HUMAN),
|
||||
DIGITAL_HUMAN_KLING("kling", "可灵", AiPlatformEnum.DIGITAL_HUMAN),
|
||||
|
||||
// ========== TikHub 爬虫 ==========
|
||||
TIKHUB_CRAWLER("crawler", "爬虫", AiPlatformEnum.TIKHUB),
|
||||
|
||||
// ========== 阿里云语音服务 ==========
|
||||
ALICLOUD_VOICE_TO_TEXT("voice_to_text", "语音转文字", AiPlatformEnum.ALICLOUD),
|
||||
|
||||
// ========== SiliconFlow 语音服务 ==========
|
||||
SILICONFLOW_INDEXTTS("indextts", "IndexTTS", AiPlatformEnum.SILICONFLOW),
|
||||
;
|
||||
|
||||
/**
|
||||
|
||||
@@ -18,6 +18,9 @@ public enum AiPlatformEnum implements ArrayValuable<String> {
|
||||
|
||||
DIFY("dify", "Dify 平台"),
|
||||
DIGITAL_HUMAN("digital_human", "数字人平台"),
|
||||
TIKHUB("tikhub", "TikHub 平台"),
|
||||
ALICLOUD("alicloud", "阿里云平台"),
|
||||
SILICONFLOW("siliconflow", "SiliconFlow 平台"),
|
||||
;
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,8 +25,7 @@ public class AiModelConfigSaveReqVO {
|
||||
@NotEmpty(message = "所属平台不能为空")
|
||||
private String platform;
|
||||
|
||||
@Schema(description = "API秘钥", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "API秘钥不能为空")
|
||||
@Schema(description = "API秘钥")
|
||||
private String apiKey;
|
||||
|
||||
@Schema(description = "状态(0-禁用 1-启用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@@ -53,8 +52,7 @@ public class AiModelConfigSaveReqVO {
|
||||
@NotNull(message = "消耗积分不能为空")
|
||||
private Integer consumePoints;
|
||||
|
||||
@Schema(description = "最大文本数量", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "最大文本数量不能为空")
|
||||
@Schema(description = "最大文本数量")
|
||||
private Integer maxTextLength;
|
||||
|
||||
@Schema(description = "图片最大像素", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user