Stop continuous mode when agent returns isLast

This commit is contained in:
hunteraraujo
2023-10-20 00:13:12 -07:00
parent 9219bfba0e
commit 952f181377

View File

@@ -157,7 +157,7 @@ class ChatViewModel with ChangeNotifier {
// Notify UI of the new chats // Notify UI of the new chats
notifyListeners(); notifyListeners();
if (_isContinuousMode) { if (_isContinuousMode && !executedStep.isLast) {
print("Continuous Mode: Step $currentStep of $continuousModeSteps"); print("Continuous Mode: Step $currentStep of $continuousModeSteps");
if (currentStep < continuousModeSteps) { if (currentStep < continuousModeSteps) {
sendChatMessage(null, sendChatMessage(null,