ai 5.0.71 → 5.0.72

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.72
4
+
5
+ ### Patch Changes
6
+
7
+ - 1b94257: fix(ui): do not submit automatically when server return with error
8
+
3
9
  ## 5.0.71
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -786,7 +786,7 @@ function detectMediaType({
786
786
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
787
787
 
788
788
  // src/version.ts
789
- var VERSION = true ? "5.0.71" : "0.0.0-test";
789
+ var VERSION = true ? "5.0.72" : "0.0.0-test";
790
790
 
791
791
  // src/util/download/download.ts
792
792
  var download = async ({ url }) => {
@@ -10030,7 +10030,7 @@ var AbstractChat = class {
10030
10030
  }
10031
10031
  this.activeResponse = void 0;
10032
10032
  }
10033
- if ((_b = this.sendAutomaticallyWhen) == null ? void 0 : _b.call(this, { messages: this.state.messages })) {
10033
+ if (((_b = this.sendAutomaticallyWhen) == null ? void 0 : _b.call(this, { messages: this.state.messages })) && !isError) {
10034
10034
  await this.makeRequest({
10035
10035
  trigger: "submit-message",
10036
10036
  messageId: (_c = this.lastMessage) == null ? void 0 : _c.id,