mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
Correct triggerEvaluation endpoint
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user