Refactor Benchmarking Workflow and Introduce New Data Models (#5264)

* New benchmark data models

* Update _benchmarkBaseUrl

* Remove ReportRequestBody

* Update benchmark service methods for proxy approach

* Add eval id to SkillNodeData

* Refactor runBenchmark Method for proxy approach
This commit is contained in:
hunteraraujo
2023-09-19 17:01:15 -07:00
committed by GitHub
parent 2098e192da
commit 5afab461ee
8 changed files with 113 additions and 70 deletions

View File

@@ -9,6 +9,7 @@ class SkillNodeData {
final int cutoff;
final Ground ground;
final Info info;
final String evalId;
SkillNodeData({
required this.name,
@@ -18,6 +19,7 @@ class SkillNodeData {
required this.cutoff,
required this.ground,
required this.info,
required this.evalId,
});
factory SkillNodeData.fromJson(Map<String, dynamic> json) {
@@ -29,6 +31,7 @@ class SkillNodeData {
cutoff: json['cutoff'] ?? 0,
ground: Ground.fromJson(json['ground'] ?? {}),
info: Info.fromJson(json['info'] ?? {}),
evalId: json['eval_id'] ?? "",
);
}
}