mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
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:
@@ -1,4 +1,4 @@
|
||||
import 'package:auto_gpt_flutter_client/models/benchmark_service/report_request_body.dart';
|
||||
import 'package:auto_gpt_flutter_client/viewmodels/chat_viewmodel.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:auto_gpt_flutter_client/viewmodels/skill_tree_viewmodel.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@@ -56,8 +56,12 @@ class TaskQueueView extends StatelessWidget {
|
||||
onPressed: viewModel.isBenchmarkRunning
|
||||
? null
|
||||
: () {
|
||||
// TODO: Handle this better
|
||||
final chatViewModel =
|
||||
Provider.of<ChatViewModel>(context, listen: false);
|
||||
chatViewModel.clearCurrentTaskAndChats();
|
||||
// Call runBenchmark method from SkillTreeViewModel
|
||||
viewModel.runBenchmark();
|
||||
viewModel.runBenchmark(chatViewModel);
|
||||
},
|
||||
child: Row(
|
||||
mainAxisAlignment:
|
||||
|
||||
Reference in New Issue
Block a user