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 +6 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/03-ai-sdk-core/36-transcription.mdx +1 -0
- package/docs/03-ai-sdk-core/37-speech.mdx +4 -0
- package/package.json +1 -1
- package/src/realtime/browser-realtime-transport.ts +10 -1
package/CHANGELOG.md
CHANGED
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.
|
|
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
|
-
|
|
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() {
|