Skip to content

Commit

Permalink
fix: streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Feb 22, 2025
1 parent a85eb82 commit 86fb712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ async function processQueue(streamingState: StreamingState, res: Response, reque
} catch (error) {
console.error('Error in streaming:', error);
} finally {
// Reset state and remove from queue
// Clear state before moving to next item
streamingState.isEmitting = false;
streamingState.currentlyStreaming = false;
streamingState.remainingContent = '';
Expand Down

0 comments on commit 86fb712

Please sign in to comment.