When an error occurs stop processing.

This commit is contained in:
Taylor Mullen
2025-05-12 00:04:21 -07:00
committed by N. Taylor Mullen
parent 8537aabba4
commit df74594b8f
2 changed files with 9 additions and 3 deletions

View File

@@ -333,8 +333,6 @@ export const useGeminiStream = (
{ type: 'error', text: `[API Error: ${event.value.message}]` },
userMessageTimestamp,
);
setStreamingState(StreamingState.Idle);
// Allow stream to end naturally
}
} // End stream loop