mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
Stop continuous mode when agent returns isLast
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user