@ai-sdk/revai 3.0.0-beta.3 → 3.0.0-beta.30

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,227 @@
1
1
  # @ai-sdk/revai
2
2
 
3
+ ## 3.0.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 9f0e36c: trigger release for all packages after provenance setup
8
+ - Updated dependencies [9f0e36c]
9
+ - @ai-sdk/provider@4.0.0-beta.13
10
+ - @ai-sdk/provider-utils@5.0.0-beta.28
11
+
12
+ ## 3.0.0-beta.29
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [785fe16]
17
+ - Updated dependencies [67df0a0]
18
+ - Updated dependencies [befb78c]
19
+ - Updated dependencies [0458559]
20
+ - Updated dependencies [5852c0a]
21
+ - Updated dependencies [fc92055]
22
+ - @ai-sdk/provider-utils@5.0.0-beta.27
23
+
24
+ ## 3.0.0-beta.28
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [2e98477]
29
+ - @ai-sdk/provider-utils@5.0.0-beta.26
30
+
31
+ ## 3.0.0-beta.27
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [eea8d98]
36
+ - @ai-sdk/provider-utils@5.0.0-beta.25
37
+
38
+ ## 3.0.0-beta.26
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [f807e45]
43
+ - @ai-sdk/provider-utils@5.0.0-beta.24
44
+
45
+ ## 3.0.0-beta.25
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [350ea38]
50
+ - @ai-sdk/provider-utils@5.0.0-beta.23
51
+
52
+ ## 3.0.0-beta.24
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [083947b]
57
+ - @ai-sdk/provider-utils@5.0.0-beta.22
58
+
59
+ ## 3.0.0-beta.23
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [add1126]
64
+ - @ai-sdk/provider-utils@5.0.0-beta.21
65
+
66
+ ## 3.0.0-beta.22
67
+
68
+ ### Patch Changes
69
+
70
+ - b3976a2: Add workflow serialization support to all provider models.
71
+
72
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
73
+
74
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
75
+
76
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
77
+
78
+ - Updated dependencies [b3976a2]
79
+ - Updated dependencies [ff5eba1]
80
+ - @ai-sdk/provider-utils@5.0.0-beta.20
81
+ - @ai-sdk/provider@4.0.0-beta.12
82
+
83
+ ## 3.0.0-beta.21
84
+
85
+ ### Major Changes
86
+
87
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [ef992f8]
92
+ - @ai-sdk/provider@4.0.0-beta.11
93
+ - @ai-sdk/provider-utils@5.0.0-beta.19
94
+
95
+ ## 3.0.0-beta.20
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [90e2d8a]
100
+ - @ai-sdk/provider-utils@5.0.0-beta.18
101
+
102
+ ## 3.0.0-beta.19
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [3ae1786]
107
+ - @ai-sdk/provider-utils@5.0.0-beta.17
108
+
109
+ ## 3.0.0-beta.18
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies [176466a]
114
+ - @ai-sdk/provider@4.0.0-beta.10
115
+ - @ai-sdk/provider-utils@5.0.0-beta.16
116
+
117
+ ## 3.0.0-beta.17
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [e311194]
122
+ - @ai-sdk/provider@4.0.0-beta.9
123
+ - @ai-sdk/provider-utils@5.0.0-beta.15
124
+
125
+ ## 3.0.0-beta.16
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [34bd95d]
130
+ - Updated dependencies [008271d]
131
+ - @ai-sdk/provider@4.0.0-beta.8
132
+ - @ai-sdk/provider-utils@5.0.0-beta.14
133
+
134
+ ## 3.0.0-beta.15
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [b0c2869]
139
+ - Updated dependencies [7e26e81]
140
+ - @ai-sdk/provider-utils@5.0.0-beta.13
141
+
142
+ ## 3.0.0-beta.14
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [46d1149]
147
+ - @ai-sdk/provider-utils@5.0.0-beta.12
148
+
149
+ ## 3.0.0-beta.13
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [6fd51c0]
154
+ - @ai-sdk/provider-utils@5.0.0-beta.11
155
+ - @ai-sdk/provider@4.0.0-beta.7
156
+
157
+ ## 3.0.0-beta.12
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies [c29a26f]
162
+ - @ai-sdk/provider-utils@5.0.0-beta.10
163
+ - @ai-sdk/provider@4.0.0-beta.6
164
+
165
+ ## 3.0.0-beta.11
166
+
167
+ ### Patch Changes
168
+
169
+ - 38fc777: Add AI Gateway hint to provider READMEs
170
+
171
+ ## 3.0.0-beta.10
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [2e17091]
176
+ - @ai-sdk/provider-utils@5.0.0-beta.9
177
+
178
+ ## 3.0.0-beta.9
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [986c6fd]
183
+ - Updated dependencies [493295c]
184
+ - @ai-sdk/provider-utils@5.0.0-beta.8
185
+
186
+ ## 3.0.0-beta.8
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [1f509d4]
191
+ - @ai-sdk/provider-utils@5.0.0-beta.7
192
+ - @ai-sdk/provider@4.0.0-beta.5
193
+
194
+ ## 3.0.0-beta.7
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [3887c70]
199
+ - @ai-sdk/provider-utils@5.0.0-beta.6
200
+ - @ai-sdk/provider@4.0.0-beta.4
201
+
202
+ ## 3.0.0-beta.6
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [776b617]
207
+ - @ai-sdk/provider-utils@5.0.0-beta.5
208
+ - @ai-sdk/provider@4.0.0-beta.3
209
+
210
+ ## 3.0.0-beta.5
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [61753c3]
215
+ - @ai-sdk/provider-utils@5.0.0-beta.4
216
+
217
+ ## 3.0.0-beta.4
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies [f7d4f01]
222
+ - @ai-sdk/provider-utils@5.0.0-beta.3
223
+ - @ai-sdk/provider@4.0.0-beta.2
224
+
3
225
  ## 3.0.0-beta.3
4
226
 
5
227
  ### Patch Changes
@@ -224,13 +446,13 @@
224
446
  Before
225
447
 
226
448
  ```ts
227
- model.textEmbeddingModel('my-model-id');
449
+ model.textEmbeddingModel("my-model-id");
228
450
  ```
229
451
 
230
452
  After
231
453
 
232
454
  ```ts
233
- model.embeddingModel('my-model-id');
455
+ model.embeddingModel("my-model-id");
234
456
  ```
235
457
 
236
458
  - 95f65c2: chore: use import \* from zod/v4
@@ -430,13 +652,13 @@
430
652
  Before
431
653
 
432
654
  ```ts
433
- model.textEmbeddingModel('my-model-id');
655
+ model.textEmbeddingModel("my-model-id");
434
656
  ```
435
657
 
436
658
  After
437
659
 
438
660
  ```ts
439
- model.embeddingModel('my-model-id');
661
+ model.embeddingModel("my-model-id");
440
662
  ```
441
663
 
442
664
  - Updated dependencies [8d9e8ad]
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  The **[Rev.ai provider](https://ai-sdk.dev/providers/ai-sdk-providers/revai)** for the [AI SDK](https://ai-sdk.dev/docs)
4
4
  contains language model support for the Rev.ai transcription API.
5
5
 
6
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Rev.ai (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
7
+
6
8
  ## Setup
7
9
 
8
10
  The Rev.ai provider is available in the `@ai-sdk/revai` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import * as _ai_sdk_provider from '@ai-sdk/provider';
1
2
  import { TranscriptionModelV4, ProviderV4 } from '@ai-sdk/provider';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
+ import { FetchFunction, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@ai-sdk/provider-utils';
3
4
  import { z } from 'zod/v4';
4
5
 
5
6
  type RevaiConfig = {
@@ -8,7 +9,7 @@ type RevaiConfig = {
8
9
  modelId: string;
9
10
  path: string;
10
11
  }) => string;
11
- headers: () => Record<string, string | undefined>;
12
+ headers?: () => Record<string, string | undefined>;
12
13
  fetch?: FetchFunction;
13
14
  generateId?: () => string;
14
15
  };
@@ -101,6 +102,14 @@ declare class RevaiTranscriptionModel implements TranscriptionModelV4 {
101
102
  private readonly config;
102
103
  readonly specificationVersion = "v4";
103
104
  get provider(): string;
105
+ static [WORKFLOW_SERIALIZE](model: RevaiTranscriptionModel): {
106
+ modelId: string;
107
+ config: _ai_sdk_provider.JSONObject;
108
+ };
109
+ static [WORKFLOW_DESERIALIZE](options: {
110
+ modelId: RevaiTranscriptionModelId;
111
+ config: RevaiTranscriptionModelConfig;
112
+ }): RevaiTranscriptionModel;
104
113
  constructor(modelId: RevaiTranscriptionModelId, config: RevaiTranscriptionModelConfig);
105
114
  private getArgs;
106
115
  doGenerate(options: Parameters<TranscriptionModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<TranscriptionModelV4['doGenerate']>>>;