diff --git a/routers/repo/aisafety.go b/routers/repo/aisafety.go index 911d9c339..654de0a58 100644 --- a/routers/repo/aisafety.go +++ b/routers/repo/aisafety.go @@ -24,15 +24,16 @@ func CloudBrainAiSafetyCreateTest(ctx *context.Context) { uuid := uuid.NewV4() id := uuid.String() seriaNoParas := ctx.Query("serialNo") + fileName := ctx.Query("fileName") //if jobType == string(models.JobTypeBenchmark) { - jsonStr, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/0302.json") + jsonStr, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/" + fileName) if err == nil { req := aisafety.TaskReq{ UnionId: id, EvalName: "test1", EvalContent: "test1", TLPath: "test1", - Indicators: []string{"ACC,CAV"}, + Indicators: []string{"ACC,ASS"}, CDName: "jzl_adv_data", BDName: "jzl_cln_data", }