|
|
|
@@ -1292,6 +1292,11 @@ func paramCheckCreateInferenceJob(form auth.CreateModelArtsInferenceJobForm) err |
|
|
|
return errors.New("分支名不能为空") |
|
|
|
} |
|
|
|
|
|
|
|
if len(form.Description) > 255 { |
|
|
|
log.Error("the Description length(%d) must not more than 255", form.Description) |
|
|
|
return errors.New("描述字符不能超过255个字符") |
|
|
|
} |
|
|
|
|
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
@@ -1952,7 +1957,7 @@ func InferenceJobShow(ctx *context.Context) { |
|
|
|
task.Parameters = "" |
|
|
|
} |
|
|
|
|
|
|
|
LabelName := strings.Split(strings.TrimSpace(task.LabelName), " ") |
|
|
|
LabelName := strings.Fields(task.LabelName) |
|
|
|
ctx.Data["labelName"] = LabelName |
|
|
|
ctx.Data["jobID"] = jobID |
|
|
|
ctx.Data["jobName"] = task.JobName |
|
|
|
|