@ai-sdk/provider 4.0.0-canary.18 → 4.0.0
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,59 @@
|
|
|
1
1
|
# @ai-sdk/provider
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- f7d4f01: feat(provider): add support for `reasoning-file` type for files that are part of reasoning
|
|
8
|
+
- 776b617: feat(provider): adding new 'custom' content type
|
|
9
|
+
- 34bd95d: feat(ai): add support for uploading provider skills using the provider references abstraction
|
|
10
|
+
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
|
|
11
|
+
- c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
|
|
12
|
+
- 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in `generateText` and `streamText`
|
|
13
|
+
- 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
|
|
14
|
+
- 8359612: Start v7 pre-release
|
|
15
|
+
- 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 1f509d4: fix(ai): force template check on 'kind' param
|
|
20
|
+
- 176466a: chore(provider): align V4 model return types to have their own definitions across all model interfaces
|
|
21
|
+
- 5c2a5a2: fix(provider): fix v4 spec to not use shared v3 types
|
|
22
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
23
|
+
- 008271d: feat(openai-compatible): emit warning when using kebab-case instead of camelCase
|
|
24
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
25
|
+
- 0c4c275: trigger initial canary release
|
|
26
|
+
- 6fd51c0: fix(provider): preserve error type prefix in getErrorMessage
|
|
27
|
+
- ce769dd: feat(provider): add experimental Realtime API support for voice conversations
|
|
28
|
+
|
|
29
|
+
Adds first-class support for realtime (speech-to-speech) APIs:
|
|
30
|
+
|
|
31
|
+
- `Experimental_RealtimeModelV4` spec in `@ai-sdk/provider` with normalized event types and factory
|
|
32
|
+
- OpenAI, Google, and xAI realtime provider implementations
|
|
33
|
+
- `openai.experimental_realtime()` / `google.experimental_realtime()` / `xai.experimental_realtime()` work in both server and browser
|
|
34
|
+
- `.getToken()` static method on each provider for server-side ephemeral token creation
|
|
35
|
+
- `experimental_getRealtimeToolDefinitions` helper for provider session tool definitions
|
|
36
|
+
- `experimental_useRealtime` hook in `@ai-sdk/react` returning `UIMessage[]` (aligned with `useChat`), with `onToolCall` and `addToolOutput` for client-driven tool execution
|
|
37
|
+
- `inputAudioTranscription` session config for showing transcribed user audio messages when supported by the provider
|
|
38
|
+
|
|
39
|
+
- e311194: feat(ai): allow passing provider instance to `uploadFile` and `uploadSkill` as shorthand
|
|
40
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
41
|
+
- b8396f0: trigger initial beta release
|
|
42
|
+
- 0416e3e: feat (video): add first-class `generateAudio` call option
|
|
43
|
+
- ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
|
|
44
|
+
|
|
45
|
+
## 4.0.0-beta.20
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 0416e3e: feat (video): add first-class `generateAudio` call option
|
|
50
|
+
|
|
51
|
+
## 4.0.0-beta.19
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- b8396f0: trigger initial beta release
|
|
56
|
+
|
|
3
57
|
## 4.0.0-canary.18
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -6775,6 +6775,10 @@ type VideoModelV4CallOptions = {
|
|
|
6775
6775
|
* The image serves as the starting frame that the model will animate.
|
|
6776
6776
|
*/
|
|
6777
6777
|
image: VideoModelV4File | undefined;
|
|
6778
|
+
/**
|
|
6779
|
+
* Whether the model should generate audio alongside the video.
|
|
6780
|
+
*/
|
|
6781
|
+
generateAudio: boolean | undefined;
|
|
6778
6782
|
/**
|
|
6779
6783
|
* Additional provider-specific options that are passed through to the provider
|
|
6780
6784
|
* as body parameters.
|
|
@@ -6996,6 +7000,10 @@ type VideoModelV3CallOptions = {
|
|
|
6996
7000
|
* The image serves as the starting frame that the model will animate.
|
|
6997
7001
|
*/
|
|
6998
7002
|
image: VideoModelV3File | undefined;
|
|
7003
|
+
/**
|
|
7004
|
+
* Whether the model should generate audio alongside the video.
|
|
7005
|
+
*/
|
|
7006
|
+
generateAudio: boolean | undefined;
|
|
6999
7007
|
/**
|
|
7000
7008
|
* Additional provider-specific options that are passed through to the provider
|
|
7001
7009
|
* as body parameters.
|
package/package.json
CHANGED
|
@@ -54,6 +54,11 @@ export type VideoModelV3CallOptions = {
|
|
|
54
54
|
*/
|
|
55
55
|
image: VideoModelV3File | undefined;
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Whether the model should generate audio alongside the video.
|
|
59
|
+
*/
|
|
60
|
+
generateAudio: boolean | undefined;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* Additional provider-specific options that are passed through to the provider
|
|
59
64
|
* as body parameters.
|
|
@@ -54,6 +54,11 @@ export type VideoModelV4CallOptions = {
|
|
|
54
54
|
*/
|
|
55
55
|
image: VideoModelV4File | undefined;
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Whether the model should generate audio alongside the video.
|
|
59
|
+
*/
|
|
60
|
+
generateAudio: boolean | undefined;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* Additional provider-specific options that are passed through to the provider
|
|
59
64
|
* as body parameters.
|