@ai-sdk/assemblyai 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 +237 -4
- package/README.md +2 -0
- package/dist/index.d.ts +12 -3
- package/dist/index.js +117 -122
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/assemblyai-config.ts +2 -2
- package/src/assemblyai-provider.ts +4 -4
- package/src/assemblyai-transcription-model.ts +25 -8
- package/src/assemblyai-transcription-settings.ts +1 -1
- package/dist/index.d.mts +0 -123
- package/dist/index.mjs +0 -439
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,238 @@
|
|
|
1
1
|
# @ai-sdk/assemblyai
|
|
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
|
|
@@ -228,13 +461,13 @@
|
|
|
228
461
|
Before
|
|
229
462
|
|
|
230
463
|
```ts
|
|
231
|
-
model.textEmbeddingModel(
|
|
464
|
+
model.textEmbeddingModel("my-model-id");
|
|
232
465
|
```
|
|
233
466
|
|
|
234
467
|
After
|
|
235
468
|
|
|
236
469
|
```ts
|
|
237
|
-
model.embeddingModel(
|
|
470
|
+
model.embeddingModel("my-model-id");
|
|
238
471
|
```
|
|
239
472
|
|
|
240
473
|
- 95f65c2: chore: use import \* from zod/v4
|
|
@@ -435,13 +668,13 @@
|
|
|
435
668
|
Before
|
|
436
669
|
|
|
437
670
|
```ts
|
|
438
|
-
model.textEmbeddingModel(
|
|
671
|
+
model.textEmbeddingModel("my-model-id");
|
|
439
672
|
```
|
|
440
673
|
|
|
441
674
|
After
|
|
442
675
|
|
|
443
676
|
```ts
|
|
444
|
-
model.embeddingModel(
|
|
677
|
+
model.embeddingModel("my-model-id");
|
|
445
678
|
```
|
|
446
679
|
|
|
447
680
|
- Updated dependencies [8d9e8ad]
|
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
The **[AssemblyAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/assemblyai)** for the [AI SDK](https://ai-sdk.dev/docs)
|
|
4
4
|
contains transcription model support for the AssemblyAI transcription API.
|
|
5
5
|
|
|
6
|
+
> **Deploying to Vercel?** With Vercel's AI Gateway you can access AssemblyAI (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 AssemblyAI provider is available in the `@ai-sdk/assemblyai` 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 AssemblyAIConfig = {
|
|
@@ -8,12 +9,12 @@ type AssemblyAIConfig = {
|
|
|
8
9
|
modelId: string;
|
|
9
10
|
path: string;
|
|
10
11
|
}) => string;
|
|
11
|
-
headers
|
|
12
|
+
headers?: () => Record<string, string | undefined>;
|
|
12
13
|
fetch?: FetchFunction;
|
|
13
14
|
generateId?: () => string;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
type AssemblyAITranscriptionModelId = 'best' | 'nano';
|
|
17
|
+
type AssemblyAITranscriptionModelId = 'best' | 'nano' | (string & {});
|
|
17
18
|
|
|
18
19
|
declare const assemblyaiTranscriptionModelOptionsSchema: z.ZodObject<{
|
|
19
20
|
audioEndAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -70,6 +71,14 @@ declare class AssemblyAITranscriptionModel implements TranscriptionModelV4 {
|
|
|
70
71
|
readonly specificationVersion = "v4";
|
|
71
72
|
private readonly POLLING_INTERVAL_MS;
|
|
72
73
|
get provider(): string;
|
|
74
|
+
static [WORKFLOW_SERIALIZE](model: AssemblyAITranscriptionModel): {
|
|
75
|
+
modelId: string;
|
|
76
|
+
config: _ai_sdk_provider.JSONObject;
|
|
77
|
+
};
|
|
78
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
79
|
+
modelId: AssemblyAITranscriptionModelId;
|
|
80
|
+
config: AssemblyAITranscriptionModelConfig;
|
|
81
|
+
}): AssemblyAITranscriptionModel;
|
|
73
82
|
constructor(modelId: AssemblyAITranscriptionModelId, config: AssemblyAITranscriptionModelConfig);
|
|
74
83
|
private getArgs;
|
|
75
84
|
/**
|