@ai-sdk/openai 4.0.82 → 4.0.83
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +3 -1
- package/dist/internal/index.js.map +1 -1
- package/package.json +3 -3
- package/src/transcription/openai-transcription-api.ts +1 -0
- package/src/transcription/openai-transcription-model.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 4.0.83
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8c65988: feat(ai): add telemetry to speech generation and transcription, including
|
|
8
|
+
provider usage propagation and experimental streaming lifecycle callbacks
|
|
9
|
+
- Updated dependencies [8c65988]
|
|
10
|
+
- Updated dependencies [527a163]
|
|
11
|
+
- @ai-sdk/provider@4.0.21
|
|
12
|
+
- @ai-sdk/provider-utils@5.0.53
|
|
13
|
+
|
|
3
14
|
## 4.0.82
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -9114,7 +9114,8 @@ const openaiTranscriptionResponseSchema = lazySchema(() => zodSchema(z.object({
|
|
|
9114
9114
|
end: z.number(),
|
|
9115
9115
|
text: z.string(),
|
|
9116
9116
|
speaker: z.string()
|
|
9117
|
-
})])).nullish()
|
|
9117
|
+
})])).nullish(),
|
|
9118
|
+
usage: z.record(z.string(), z.json()).nullish()
|
|
9118
9119
|
})));
|
|
9119
9120
|
//#endregion
|
|
9120
9121
|
//#region src/transcription/openai-transcription-model-options.ts
|
|
@@ -9343,6 +9344,7 @@ var OpenAITranscriptionModel = class OpenAITranscriptionModel {
|
|
|
9343
9344
|
language,
|
|
9344
9345
|
durationInSeconds: response.duration ?? void 0,
|
|
9345
9346
|
warnings,
|
|
9347
|
+
...response.usage != null && { usage: response.usage },
|
|
9346
9348
|
response: {
|
|
9347
9349
|
timestamp: currentDate,
|
|
9348
9350
|
modelId: this.modelId,
|
|
@@ -9838,7 +9840,7 @@ var OpenAISkills = class {
|
|
|
9838
9840
|
};
|
|
9839
9841
|
//#endregion
|
|
9840
9842
|
//#region src/version.ts
|
|
9841
|
-
const VERSION = "4.0.
|
|
9843
|
+
const VERSION = "4.0.83";
|
|
9842
9844
|
//#endregion
|
|
9843
9845
|
//#region src/openai-provider.ts
|
|
9844
9846
|
/**
|