|
|
|
@@ -202,6 +202,7 @@ func QueryModelByParameters(repoId int64, page int) ([]*models.AiModelManage, in |
|
|
|
PageSize: setting.UI.IssuePagingNum, |
|
|
|
}, |
|
|
|
RepoID: repoId, |
|
|
|
Type: -1, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
@@ -213,13 +214,14 @@ func ShowModelInfo(ctx *context.Context) { |
|
|
|
page = 1 |
|
|
|
} |
|
|
|
repoId := ctx.QueryInt64("repoId") |
|
|
|
|
|
|
|
Type := -1 |
|
|
|
modelResult, count, err := models.QueryModel(&models.AiModelQueryOptions{ |
|
|
|
ListOptions: models.ListOptions{ |
|
|
|
Page: page, |
|
|
|
PageSize: setting.UI.IssuePagingNum, |
|
|
|
}, |
|
|
|
RepoID: repoId, |
|
|
|
Type: Type, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Cloudbrain", err) |
|
|
|
|