diff options
author | hunteraraujo <hunter_araujo@msn.com> | 2023-10-20 00:13:12 -0700 |
---|---|---|
committer | hunteraraujo <hunter_araujo@msn.com> | 2023-10-20 00:13:12 -0700 |
commit | 952f18137785184ca12e38aad005dba450c4ddb6 (patch) | |
tree | 91cd03ba51e871780965d9887c18c99fe2ac7dad /frontend | |
parent | add Markdown detection and rendering (diff) | |
download | Auto-GPT-952f18137785184ca12e38aad005dba450c4ddb6.tar.gz Auto-GPT-952f18137785184ca12e38aad005dba450c4ddb6.tar.bz2 Auto-GPT-952f18137785184ca12e38aad005dba450c4ddb6.zip |
Stop continuous mode when agent returns isLast
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/lib/viewmodels/chat_viewmodel.dart | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/lib/viewmodels/chat_viewmodel.dart b/frontend/lib/viewmodels/chat_viewmodel.dart index 2056c8743..bd42964e2 100644 --- a/frontend/lib/viewmodels/chat_viewmodel.dart +++ b/frontend/lib/viewmodels/chat_viewmodel.dart @@ -157,7 +157,7 @@ class ChatViewModel with ChangeNotifier { // Notify UI of the new chats notifyListeners(); - if (_isContinuousMode) { + if (_isContinuousMode && !executedStep.isLast) { print("Continuous Mode: Step $currentStep of $continuousModeSteps"); if (currentStep < continuousModeSteps) { sendChatMessage(null, |