ai 5.0.232 → 5.0.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.233
4
+
5
+ ### Patch Changes
6
+
7
+ - 2604cb6: Prevent `resumeStream` from copying the previous assistant message into the resumed response.
8
+
3
9
  ## 5.0.232
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -816,7 +816,7 @@ function detectMediaType({
816
816
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
817
817
 
818
818
  // src/version.ts
819
- var VERSION = true ? "5.0.232" : "0.0.0-test";
819
+ var VERSION = true ? "5.0.233" : "0.0.0-test";
820
820
 
821
821
  // src/util/download/download.ts
822
822
  var download = async ({
@@ -9623,7 +9623,7 @@ var AbstractChat = class {
9623
9623
  try {
9624
9624
  const response = {
9625
9625
  state: createStreamingUIMessageState({
9626
- lastMessage: this.state.snapshot(lastMessage),
9626
+ lastMessage: trigger === "resume-stream" ? void 0 : this.state.snapshot(lastMessage),
9627
9627
  messageId: this.generateId()
9628
9628
  }),
9629
9629
  abortController