Correct triggerEvaluation endpoint

This commit is contained in:
hunteraraujo
2023-09-19 17:19:59 -07:00
parent 5afab461ee
commit f130aa7972

View File

@@ -42,7 +42,7 @@ class BenchmarkService {
/// [taskId] is the ID of the task. /// [taskId] is the ID of the task.
Future<Map<String, dynamic>> triggerEvaluation(String taskId) async { Future<Map<String, dynamic>> triggerEvaluation(String taskId) async {
try { try {
return await api.post('agent/tasks/$taskId/evaluation', {}, return await api.post('agent/tasks/$taskId/evaluations', {},
apiType: ApiType.benchmark); apiType: ApiType.benchmark);
} catch (e) { } catch (e) {
throw Exception('Failed to trigger evaluation: $e'); throw Exception('Failed to trigger evaluation: $e');