|
|
|
@@ -1050,10 +1050,11 @@ func ShowModelPageInfo(ctx *context.Context) { |
|
|
|
Page: page, |
|
|
|
PageSize: pageSize, |
|
|
|
}, |
|
|
|
RepoID: repoId, |
|
|
|
Type: Type, |
|
|
|
New: MODEL_LATEST, |
|
|
|
Status: -1, |
|
|
|
RepoID: repoId, |
|
|
|
Type: Type, |
|
|
|
New: MODEL_LATEST, |
|
|
|
IsOnlyThisRepo: true, |
|
|
|
Status: -1, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Cloudbrain", err) |
|
|
|
@@ -1193,7 +1194,7 @@ func QueryModelListForPredict(ctx *context.Context) { |
|
|
|
if pageSize <= 0 { |
|
|
|
pageSize = -1 |
|
|
|
} |
|
|
|
IsOnlyThisRepo := ctx.QueryBool("isOnlyThisRepo") |
|
|
|
//IsOnlyThisRepo := ctx.QueryBool("isOnlyThisRepo") |
|
|
|
modelResult, count, err := models.QueryModel(&models.AiModelQueryOptions{ |
|
|
|
ListOptions: models.ListOptions{ |
|
|
|
Page: page, |
|
|
|
@@ -1203,7 +1204,7 @@ func QueryModelListForPredict(ctx *context.Context) { |
|
|
|
Type: ctx.QueryInt("type"), |
|
|
|
New: -1, |
|
|
|
Status: 0, |
|
|
|
IsOnlyThisRepo: IsOnlyThisRepo, |
|
|
|
IsOnlyThisRepo: true, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Cloudbrain", err) |
|
|
|
|