|
|
|
@@ -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", |
|
|
|
} |
|
|
|
|