ai 7.0.21 → 7.0.22

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
+ ## 7.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - 8f89c25: Add the Cartesia provider with Sonic 3.5 speech generation, Ink-Whisper batch transcription, and Ink 2 realtime transcription support.
8
+
3
9
  ## 7.0.21
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1089,7 +1089,7 @@ import {
1089
1089
  } from "@ai-sdk/provider-utils";
1090
1090
 
1091
1091
  // src/version.ts
1092
- var VERSION = true ? "7.0.21" : "0.0.0-test";
1092
+ var VERSION = true ? "7.0.22" : "0.0.0-test";
1093
1093
 
1094
1094
  // src/util/download/download.ts
1095
1095
  var download = async ({
@@ -14631,7 +14631,11 @@ var BrowserRealtimeTransport = class {
14631
14631
  sendRaw(data) {
14632
14632
  var _a22;
14633
14633
  if (((_a22 = this.ws) == null ? void 0 : _a22.readyState) === WebSocket.OPEN) {
14634
- this.ws.send(JSON.stringify(data));
14634
+ if (typeof data === "string" || data instanceof ArrayBuffer || ArrayBuffer.isView(data) || data instanceof Blob) {
14635
+ this.ws.send(data);
14636
+ } else {
14637
+ this.ws.send(JSON.stringify(data));
14638
+ }
14635
14639
  }
14636
14640
  }
14637
14641
  dispose() {