ai 6.0.0-beta.47 → 6.0.0-beta.48

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
+ ## 6.0.0-beta.48
4
+
5
+ ### Patch Changes
6
+
7
+ - 7f2c9b6: fix(ui): do not submit automatically when server return with error
8
+
3
9
  ## 6.0.0-beta.47
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -868,7 +868,7 @@ function detectMediaType({
868
868
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
869
869
 
870
870
  // src/version.ts
871
- var VERSION = true ? "6.0.0-beta.47" : "0.0.0-test";
871
+ var VERSION = true ? "6.0.0-beta.48" : "0.0.0-test";
872
872
 
873
873
  // src/util/download/download.ts
874
874
  var download = async ({ url }) => {
@@ -10499,7 +10499,7 @@ var AbstractChat = class {
10499
10499
  }
10500
10500
  this.activeResponse = void 0;
10501
10501
  }
10502
- if ((_b = this.sendAutomaticallyWhen) == null ? void 0 : _b.call(this, { messages: this.state.messages })) {
10502
+ if (((_b = this.sendAutomaticallyWhen) == null ? void 0 : _b.call(this, { messages: this.state.messages })) && !isError) {
10503
10503
  await this.makeRequest({
10504
10504
  trigger: "submit-message",
10505
10505
  messageId: (_c = this.lastMessage) == null ? void 0 : _c.id,