feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+5 -5
View File
@@ -111,7 +111,7 @@ func CreateModelMeta(c *gin.Context) {
return
}
if m.ModelName == "" {
common.ApiErrorMsg(c, "模型名称不能为空")
common.ApiErrorT(c, "Model name cannot be empty")
return
}
if err := model.ValidateMetadataValues(model.MetadataValues{Endpoints: m.Endpoints, Status: m.Status, NameRule: m.NameRule}); err != nil {
@@ -123,7 +123,7 @@ func CreateModelMeta(c *gin.Context) {
common.ApiError(c, err)
return
} else if dup {
common.ApiErrorMsg(c, "模型名称已存在")
common.ApiErrorT(c, "Model name already exists")
return
}
@@ -146,7 +146,7 @@ func UpdateModelMeta(c *gin.Context) {
return
}
if m.Id == 0 {
common.ApiErrorMsg(c, "缺少模型 ID")
common.ApiErrorT(c, "Missing model ID")
return
}
@@ -162,7 +162,7 @@ func UpdateModelMeta(c *gin.Context) {
}
} else {
if strings.TrimSpace(m.ModelName) == "" {
common.ApiErrorMsg(c, "模型名称不能为空")
common.ApiErrorT(c, "Model name cannot be empty")
return
}
if err := model.ValidateMetadataValues(model.MetadataValues{Endpoints: m.Endpoints, Status: m.Status, NameRule: m.NameRule}); err != nil {
@@ -174,7 +174,7 @@ func UpdateModelMeta(c *gin.Context) {
common.ApiError(c, err)
return
} else if dup {
common.ApiErrorMsg(c, "模型名称已存在")
common.ApiErrorT(c, "Model name already exists")
return
}