We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd49c83 commit 2e4e9f3Copy full SHA for 2e4e9f3
1 file changed
app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningViewModel.kt
@@ -745,8 +745,7 @@ class PhotoReasoningViewModel(
745
if (commandProcessingJob?.isActive != true || stopExecutionFlag.get()) return@launch // Check for cancellation
746
try {
747
// Parse commands from the text
748
- val commands = CommandParser.parseCommands(text)
749
-
+ val commands = CommandParser.parseCommands(text, clearBuffer = true)
750
if (commands.isNotEmpty()) {
751
if (commandProcessingJob?.isActive != true || stopExecutionFlag.get()) return@launch
752
Log.d(TAG, "Found ${commands.size} commands in response")
0 commit comments