|
|
@@ -194,6 +194,7 @@ func AdminOrOwnerOrJobCreaterRightForTrain(ctx *context.Context) { |
|
|
|
func AdminOrJobCreaterRightForTrain(ctx *context.Context) { |
|
|
|
|
|
|
|
var jobID = ctx.Params(":jobid") |
|
|
|
log.Info("jobID=" + jobID) |
|
|
|
job, err := GetCloudBrainByIdOrJobId(jobID, "jobid") |
|
|
|
if err != nil { |
|
|
|
log.Error("GetCloudbrainByJobID failed:%v", err.Error()) |
|
|
@@ -709,7 +710,7 @@ type GenerateModelArtsNotebookReq struct { |
|
|
|
|
|
|
|
ImageId string |
|
|
|
AutoStopDurationMs int64 |
|
|
|
BranchName string |
|
|
|
BranchName string |
|
|
|
|
|
|
|
Spec *models.Specification |
|
|
|
ModelName string |
|
|
|