Refactor benchmark data models with placeholder values

This commit is contained in:
hunteraraujo
2023-09-27 15:16:34 -07:00
parent e4d84dad0a
commit ec03170e6e
5 changed files with 32 additions and 24 deletions

View File

@@ -28,8 +28,9 @@ class Config {
///
/// Returns a new `Config` populated with values from the map.
factory Config.fromJson(Map<String, dynamic> json) => Config(
agentBenchmarkConfigPath: json['agent_benchmark_config_path'] ?? "",
host: json['host'] ?? "",
agentBenchmarkConfigPath:
json['agent_benchmark_config_path'] ?? 'placeholder',
host: json['host'] ?? 'https://github.com/Significant-Gravitas/AutoGPT',
);
/// Converts the `Config` instance to a map.