|
|
|
@@ -557,20 +557,6 @@ func deleteModelByID(ctx *context.Context, id string) error { |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
func QueryModelByParameters(repoId int64, page int) ([]*models.AiModelManage, int64, error) { |
|
|
|
|
|
|
|
return models.QueryModel(&models.AiModelQueryOptions{ |
|
|
|
ListOptions: models.ListOptions{ |
|
|
|
Page: page, |
|
|
|
PageSize: setting.UI.IssuePagingNum, |
|
|
|
}, |
|
|
|
RepoID: repoId, |
|
|
|
Type: -1, |
|
|
|
New: MODEL_LATEST, |
|
|
|
Status: -1, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
func DownloadMultiModelFile(ctx *context.Context) { |
|
|
|
log.Info("DownloadMultiModelFile start.") |
|
|
|
id := ctx.Query("id") |
|
|
|
|