ai 6.0.243 → 6.0.244

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/dist/index.mjs CHANGED
@@ -1193,7 +1193,7 @@ import {
1193
1193
  } from "@ai-sdk/provider-utils";
1194
1194
 
1195
1195
  // src/version.ts
1196
- var VERSION = true ? "6.0.243" : "0.0.0-test";
1196
+ var VERSION = true ? "6.0.244" : "0.0.0-test";
1197
1197
 
1198
1198
  // src/util/download/download.ts
1199
1199
  var download = async ({
@@ -13977,7 +13977,7 @@ var AbstractChat = class {
13977
13977
  try {
13978
13978
  const response = {
13979
13979
  state: createStreamingUIMessageState({
13980
- lastMessage: this.state.snapshot(lastMessage),
13980
+ lastMessage: trigger === "regenerate-message" ? void 0 : this.state.snapshot(lastMessage),
13981
13981
  messageId: this.generateId()
13982
13982
  }),
13983
13983
  abortController: new AbortController()