ai 4.3.3 → 4.3.4
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 +11 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 4.3.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 013faa8: core (ai): change transcription model mimeType to mediaType
|
8
|
+
- Updated dependencies [013faa8]
|
9
|
+
- @ai-sdk/provider@1.1.2
|
10
|
+
- @ai-sdk/provider-utils@2.2.6
|
11
|
+
- @ai-sdk/ui-utils@1.2.7
|
12
|
+
- @ai-sdk/react@1.2.8
|
13
|
+
|
3
14
|
## 4.3.3
|
4
15
|
|
5
16
|
### Patch Changes
|
package/dist/index.js
CHANGED
@@ -6357,7 +6357,7 @@ async function transcribe({
|
|
6357
6357
|
headers
|
6358
6358
|
}) {
|
6359
6359
|
const { retry } = prepareRetries({ maxRetries: maxRetriesArg });
|
6360
|
-
const audioData = audio instanceof URL ?
|
6360
|
+
const audioData = audio instanceof URL ? (await download({ url: audio })).data : convertDataContentToUint8Array(audio);
|
6361
6361
|
const result = await retry(
|
6362
6362
|
() => {
|
6363
6363
|
var _a17;
|
@@ -6366,7 +6366,7 @@ async function transcribe({
|
|
6366
6366
|
abortSignal,
|
6367
6367
|
headers,
|
6368
6368
|
providerOptions,
|
6369
|
-
|
6369
|
+
mediaType: (_a17 = detectMimeType({
|
6370
6370
|
data: audioData,
|
6371
6371
|
signatures: audioMimeTypeSignatures
|
6372
6372
|
})) != null ? _a17 : "audio/wav"
|