@ai-sdk/openai 4.0.0-canary.72 → 4.0.0-canary.73
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 +9 -0
- package/dist/index.js +1 -1
- package/docs/03-openai.mdx +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 4.0.0-canary.73
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [aeda373]
|
|
8
|
+
- Updated dependencies [375fdd7]
|
|
9
|
+
- Updated dependencies [b4507d5]
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
11
|
+
|
|
3
12
|
## 4.0.0-canary.72
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -7938,7 +7938,7 @@ var OpenAISkills = class {
|
|
|
7938
7938
|
};
|
|
7939
7939
|
|
|
7940
7940
|
// src/version.ts
|
|
7941
|
-
var VERSION = true ? "4.0.0-canary.
|
|
7941
|
+
var VERSION = true ? "4.0.0-canary.73" : "0.0.0-test";
|
|
7942
7942
|
|
|
7943
7943
|
// src/openai-provider.ts
|
|
7944
7944
|
function createOpenAI(options = {}) {
|
package/docs/03-openai.mdx
CHANGED
|
@@ -2646,7 +2646,7 @@ const model = openai.transcription('whisper-1');
|
|
|
2646
2646
|
You can also pass additional provider-specific options using the `providerOptions` argument. For example, supplying the input language in ISO-639-1 (e.g. `en`) format will improve accuracy and latency.
|
|
2647
2647
|
|
|
2648
2648
|
```ts highlight="6"
|
|
2649
|
-
import {
|
|
2649
|
+
import { transcribe } from 'ai';
|
|
2650
2650
|
import { openai, type OpenAITranscriptionModelOptions } from '@ai-sdk/openai';
|
|
2651
2651
|
|
|
2652
2652
|
const result = await transcribe({
|
|
@@ -2661,7 +2661,7 @@ const result = await transcribe({
|
|
|
2661
2661
|
To get word-level timestamps, specify the granularity:
|
|
2662
2662
|
|
|
2663
2663
|
```ts highlight="8-9"
|
|
2664
|
-
import {
|
|
2664
|
+
import { transcribe } from 'ai';
|
|
2665
2665
|
import { openai, type OpenAITranscriptionModelOptions } from '@ai-sdk/openai';
|
|
2666
2666
|
|
|
2667
2667
|
const result = await transcribe({
|
|
@@ -2725,7 +2725,7 @@ const model = openai.speech('tts-1');
|
|
|
2725
2725
|
The `voice` argument can be set to one of OpenAI's available voices: `alloy`, `ash`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, or `shimmer`.
|
|
2726
2726
|
|
|
2727
2727
|
```ts highlight="6"
|
|
2728
|
-
import {
|
|
2728
|
+
import { generateSpeech } from 'ai';
|
|
2729
2729
|
import { openai } from '@ai-sdk/openai';
|
|
2730
2730
|
|
|
2731
2731
|
const result = await generateSpeech({
|
|
@@ -2738,7 +2738,7 @@ const result = await generateSpeech({
|
|
|
2738
2738
|
You can also pass additional provider-specific options using the `providerOptions` argument:
|
|
2739
2739
|
|
|
2740
2740
|
```ts highlight="7-9"
|
|
2741
|
-
import {
|
|
2741
|
+
import { generateSpeech } from 'ai';
|
|
2742
2742
|
import { openai, type OpenAISpeechModelOptions } from '@ai-sdk/openai';
|
|
2743
2743
|
|
|
2744
2744
|
const result = await generateSpeech({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/openai",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ai-sdk/provider": "4.0.0-canary.18",
|
|
39
|
-
"@ai-sdk/provider-utils": "5.0.0-canary.
|
|
39
|
+
"@ai-sdk/provider-utils": "5.0.0-canary.48"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "22.19.19",
|