Skip to content

Commit

Permalink
Add streamText.done() to close the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
miurla committed Apr 7, 2024
1 parent f7f5fb6 commit 0226488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async function submit(formData?: FormData, skip?: boolean) {
const { fullResponse } = await researcher(uiStream, streamText, messages)
answer = fullResponse
}
streamText.done()

// Generate related queries
await querySuggestor(uiStream, messages)
Expand Down

0 comments on commit 0226488

Please sign in to comment.