mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 20:04:28 +01:00
Fix bug where benchmarks are not showing chat convo
This commit is contained in:
@@ -203,16 +203,17 @@ class SkillTreeViewModel extends ChangeNotifier {
|
||||
await benchmarkService.executeBenchmarkStep(
|
||||
task.id, BenchmarkStepRequestBody(input: node.data.task));
|
||||
Step step = Step.fromMap(stepResponse);
|
||||
chatViewModel.fetchChatsForTask();
|
||||
|
||||
// Check if it's the last step
|
||||
while (!step.isLast) {
|
||||
// Fetch chats for the task
|
||||
chatViewModel.fetchChatsForTask();
|
||||
|
||||
// Execute next step and update the Step object
|
||||
stepResponse = await benchmarkService.executeBenchmarkStep(
|
||||
task.id, BenchmarkStepRequestBody(input: null));
|
||||
step = Step.fromMap(stepResponse);
|
||||
|
||||
// Fetch chats for the task
|
||||
chatViewModel.fetchChatsForTask();
|
||||
}
|
||||
|
||||
// Trigger the evaluation
|
||||
|
||||
Reference in New Issue
Block a user