| @@ -1826,6 +1826,19 @@ func inferenceJobNewDataPrepare(ctx *context.Context) error { | |||||
| } | } | ||||
| ctx.Data["config_list"] = configList.ParaConfigs | ctx.Data["config_list"] = configList.ParaConfigs | ||||
| repoId := ctx.Repo.Repository.ID | |||||
| Type := -1 | |||||
| _, model_count, _ := models.QueryModel(&models.AiModelQueryOptions{ | |||||
| ListOptions: models.ListOptions{ | |||||
| Page: 1, | |||||
| PageSize: 2, | |||||
| }, | |||||
| RepoID: repoId, | |||||
| Type: Type, | |||||
| New: MODEL_LATEST, | |||||
| }) | |||||
| ctx.Data["MODEL_COUNT"] = model_count | |||||
| return nil | return nil | ||||
| } | } | ||||