Skip to content

An AI-powered search engine with a generative UI

Add streamText.done() to close the stream

Yoshiki Miura0226488b1253
diff --git a/app/action.tsx b/app/action.tsx
index b5686868..06113591 100644
--- a/app/action.tsx
+++ b/app/action.tsx
@@ -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)