diff --git a/README.md b/README.md index a081832..a853ca8 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ const { textStream } = await streamText({ let result = ''; for await (const textPart of textStream) { - result = textPart; + result += textPart; } console.log(result);