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

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,238 @@
1
1
  # @ai-sdk/revai
2
2
 
3
+ ## 3.0.0-beta.31
4
+
5
+ ### Patch Changes
6
+
7
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
8
+ - Updated dependencies [9bd6512]
9
+ - Updated dependencies [258c093]
10
+ - Updated dependencies [b6783da]
11
+ - @ai-sdk/provider-utils@5.0.0-beta.29
12
+ - @ai-sdk/provider@4.0.0-beta.14
13
+
14
+ ## 3.0.0-beta.30
15
+
16
+ ### Patch Changes
17
+
18
+ - 9f0e36c: trigger release for all packages after provenance setup
19
+ - Updated dependencies [9f0e36c]
20
+ - @ai-sdk/provider@4.0.0-beta.13
21
+ - @ai-sdk/provider-utils@5.0.0-beta.28
22
+
23
+ ## 3.0.0-beta.29
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [785fe16]
28
+ - Updated dependencies [67df0a0]
29
+ - Updated dependencies [befb78c]
30
+ - Updated dependencies [0458559]
31
+ - Updated dependencies [5852c0a]
32
+ - Updated dependencies [fc92055]
33
+ - @ai-sdk/provider-utils@5.0.0-beta.27
34
+
35
+ ## 3.0.0-beta.28
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [2e98477]
40
+ - @ai-sdk/provider-utils@5.0.0-beta.26
41
+
42
+ ## 3.0.0-beta.27
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [eea8d98]
47
+ - @ai-sdk/provider-utils@5.0.0-beta.25
48
+
49
+ ## 3.0.0-beta.26
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [f807e45]
54
+ - @ai-sdk/provider-utils@5.0.0-beta.24
55
+
56
+ ## 3.0.0-beta.25
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [350ea38]
61
+ - @ai-sdk/provider-utils@5.0.0-beta.23
62
+
63
+ ## 3.0.0-beta.24
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [083947b]
68
+ - @ai-sdk/provider-utils@5.0.0-beta.22
69
+
70
+ ## 3.0.0-beta.23
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [add1126]
75
+ - @ai-sdk/provider-utils@5.0.0-beta.21
76
+
77
+ ## 3.0.0-beta.22
78
+
79
+ ### Patch Changes
80
+
81
+ - b3976a2: Add workflow serialization support to all provider models.
82
+
83
+ **`@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.
84
+
85
+ **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.
86
+
87
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
88
+
89
+ - Updated dependencies [b3976a2]
90
+ - Updated dependencies [ff5eba1]
91
+ - @ai-sdk/provider-utils@5.0.0-beta.20
92
+ - @ai-sdk/provider@4.0.0-beta.12
93
+
94
+ ## 3.0.0-beta.21
95
+
96
+ ### Major Changes
97
+
98
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [ef992f8]
103
+ - @ai-sdk/provider@4.0.0-beta.11
104
+ - @ai-sdk/provider-utils@5.0.0-beta.19
105
+
106
+ ## 3.0.0-beta.20
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [90e2d8a]
111
+ - @ai-sdk/provider-utils@5.0.0-beta.18
112
+
113
+ ## 3.0.0-beta.19
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [3ae1786]
118
+ - @ai-sdk/provider-utils@5.0.0-beta.17
119
+
120
+ ## 3.0.0-beta.18
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [176466a]
125
+ - @ai-sdk/provider@4.0.0-beta.10
126
+ - @ai-sdk/provider-utils@5.0.0-beta.16
127
+
128
+ ## 3.0.0-beta.17
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [e311194]
133
+ - @ai-sdk/provider@4.0.0-beta.9
134
+ - @ai-sdk/provider-utils@5.0.0-beta.15
135
+
136
+ ## 3.0.0-beta.16
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [34bd95d]
141
+ - Updated dependencies [008271d]
142
+ - @ai-sdk/provider@4.0.0-beta.8
143
+ - @ai-sdk/provider-utils@5.0.0-beta.14
144
+
145
+ ## 3.0.0-beta.15
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [b0c2869]
150
+ - Updated dependencies [7e26e81]
151
+ - @ai-sdk/provider-utils@5.0.0-beta.13
152
+
153
+ ## 3.0.0-beta.14
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies [46d1149]
158
+ - @ai-sdk/provider-utils@5.0.0-beta.12
159
+
160
+ ## 3.0.0-beta.13
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [6fd51c0]
165
+ - @ai-sdk/provider-utils@5.0.0-beta.11
166
+ - @ai-sdk/provider@4.0.0-beta.7
167
+
168
+ ## 3.0.0-beta.12
169
+
170
+ ### Patch Changes
171
+
172
+ - Updated dependencies [c29a26f]
173
+ - @ai-sdk/provider-utils@5.0.0-beta.10
174
+ - @ai-sdk/provider@4.0.0-beta.6
175
+
176
+ ## 3.0.0-beta.11
177
+
178
+ ### Patch Changes
179
+
180
+ - 38fc777: Add AI Gateway hint to provider READMEs
181
+
182
+ ## 3.0.0-beta.10
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies [2e17091]
187
+ - @ai-sdk/provider-utils@5.0.0-beta.9
188
+
189
+ ## 3.0.0-beta.9
190
+
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [986c6fd]
194
+ - Updated dependencies [493295c]
195
+ - @ai-sdk/provider-utils@5.0.0-beta.8
196
+
197
+ ## 3.0.0-beta.8
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [1f509d4]
202
+ - @ai-sdk/provider-utils@5.0.0-beta.7
203
+ - @ai-sdk/provider@4.0.0-beta.5
204
+
205
+ ## 3.0.0-beta.7
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [3887c70]
210
+ - @ai-sdk/provider-utils@5.0.0-beta.6
211
+ - @ai-sdk/provider@4.0.0-beta.4
212
+
213
+ ## 3.0.0-beta.6
214
+
215
+ ### Patch Changes
216
+
217
+ - Updated dependencies [776b617]
218
+ - @ai-sdk/provider-utils@5.0.0-beta.5
219
+ - @ai-sdk/provider@4.0.0-beta.3
220
+
221
+ ## 3.0.0-beta.5
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [61753c3]
226
+ - @ai-sdk/provider-utils@5.0.0-beta.4
227
+
228
+ ## 3.0.0-beta.4
229
+
230
+ ### Patch Changes
231
+
232
+ - Updated dependencies [f7d4f01]
233
+ - @ai-sdk/provider-utils@5.0.0-beta.3
234
+ - @ai-sdk/provider@4.0.0-beta.2
235
+
3
236
  ## 3.0.0-beta.3
4
237
 
5
238
  ### Patch Changes
@@ -224,13 +457,13 @@
224
457
  Before
225
458
 
226
459
  ```ts
227
- model.textEmbeddingModel('my-model-id');
460
+ model.textEmbeddingModel("my-model-id");
228
461
  ```
229
462
 
230
463
  After
231
464
 
232
465
  ```ts
233
- model.embeddingModel('my-model-id');
466
+ model.embeddingModel("my-model-id");
234
467
  ```
235
468
 
236
469
  - 95f65c2: chore: use import \* from zod/v4
@@ -430,13 +663,13 @@
430
663
  Before
431
664
 
432
665
  ```ts
433
- model.textEmbeddingModel('my-model-id');
666
+ model.textEmbeddingModel("my-model-id");
434
667
  ```
435
668
 
436
669
  After
437
670
 
438
671
  ```ts
439
- model.embeddingModel('my-model-id');
672
+ model.embeddingModel("my-model-id");
440
673
  ```
441
674
 
442
675
  - 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']>>>;