|
|
@@ -474,6 +474,18 @@ func ShowOneVersionOtherModel(ctx *context.Context) { |
|
|
|
|
|
|
|
|
func ShowModelTemplate(ctx *context.Context) { |
|
|
func ShowModelTemplate(ctx *context.Context) { |
|
|
ctx.Data["isModelManage"] = true |
|
|
ctx.Data["isModelManage"] = true |
|
|
|
|
|
repoId := ctx.Repo.Repository.ID |
|
|
|
|
|
Type := -1 |
|
|
|
|
|
_, count, _ := models.QueryModel(&models.AiModelQueryOptions{ |
|
|
|
|
|
ListOptions: models.ListOptions{ |
|
|
|
|
|
Page: 1, |
|
|
|
|
|
PageSize: 2, |
|
|
|
|
|
}, |
|
|
|
|
|
RepoID: repoId, |
|
|
|
|
|
Type: Type, |
|
|
|
|
|
New: MODEL_LATEST, |
|
|
|
|
|
}) |
|
|
|
|
|
ctx.Data["MODEL_COUNT"] = count |
|
|
ctx.HTML(200, tplModelManageIndex) |
|
|
ctx.HTML(200, tplModelManageIndex) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|