@ai-sdk/gladia 3.0.0-beta.2 → 3.0.0-beta.20

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,147 @@
1
1
  # @ai-sdk/gladia
2
2
 
3
+ ## 3.0.0-beta.20
4
+
5
+ ### Major Changes
6
+
7
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ef992f8]
12
+ - @ai-sdk/provider@4.0.0-beta.11
13
+ - @ai-sdk/provider-utils@5.0.0-beta.19
14
+
15
+ ## 3.0.0-beta.19
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [90e2d8a]
20
+ - @ai-sdk/provider-utils@5.0.0-beta.18
21
+
22
+ ## 3.0.0-beta.18
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [3ae1786]
27
+ - @ai-sdk/provider-utils@5.0.0-beta.17
28
+
29
+ ## 3.0.0-beta.17
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [176466a]
34
+ - @ai-sdk/provider@4.0.0-beta.10
35
+ - @ai-sdk/provider-utils@5.0.0-beta.16
36
+
37
+ ## 3.0.0-beta.16
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [e311194]
42
+ - @ai-sdk/provider@4.0.0-beta.9
43
+ - @ai-sdk/provider-utils@5.0.0-beta.15
44
+
45
+ ## 3.0.0-beta.15
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [34bd95d]
50
+ - Updated dependencies [008271d]
51
+ - @ai-sdk/provider@4.0.0-beta.8
52
+ - @ai-sdk/provider-utils@5.0.0-beta.14
53
+
54
+ ## 3.0.0-beta.14
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [b0c2869]
59
+ - Updated dependencies [7e26e81]
60
+ - @ai-sdk/provider-utils@5.0.0-beta.13
61
+
62
+ ## 3.0.0-beta.13
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [46d1149]
67
+ - @ai-sdk/provider-utils@5.0.0-beta.12
68
+
69
+ ## 3.0.0-beta.12
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [6fd51c0]
74
+ - @ai-sdk/provider-utils@5.0.0-beta.11
75
+ - @ai-sdk/provider@4.0.0-beta.7
76
+
77
+ ## 3.0.0-beta.11
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [c29a26f]
82
+ - @ai-sdk/provider-utils@5.0.0-beta.10
83
+ - @ai-sdk/provider@4.0.0-beta.6
84
+
85
+ ## 3.0.0-beta.10
86
+
87
+ ### Patch Changes
88
+
89
+ - 38fc777: Add AI Gateway hint to provider READMEs
90
+
91
+ ## 3.0.0-beta.9
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies [2e17091]
96
+ - @ai-sdk/provider-utils@5.0.0-beta.9
97
+
98
+ ## 3.0.0-beta.8
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [986c6fd]
103
+ - Updated dependencies [493295c]
104
+ - @ai-sdk/provider-utils@5.0.0-beta.8
105
+
106
+ ## 3.0.0-beta.7
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [1f509d4]
111
+ - @ai-sdk/provider-utils@5.0.0-beta.7
112
+ - @ai-sdk/provider@4.0.0-beta.5
113
+
114
+ ## 3.0.0-beta.6
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [3887c70]
119
+ - @ai-sdk/provider-utils@5.0.0-beta.6
120
+ - @ai-sdk/provider@4.0.0-beta.4
121
+
122
+ ## 3.0.0-beta.5
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [776b617]
127
+ - @ai-sdk/provider-utils@5.0.0-beta.5
128
+ - @ai-sdk/provider@4.0.0-beta.3
129
+
130
+ ## 3.0.0-beta.4
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [61753c3]
135
+ - @ai-sdk/provider-utils@5.0.0-beta.4
136
+
137
+ ## 3.0.0-beta.3
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [f7d4f01]
142
+ - @ai-sdk/provider-utils@5.0.0-beta.3
143
+ - @ai-sdk/provider@4.0.0-beta.2
144
+
3
145
  ## 3.0.0-beta.2
4
146
 
5
147
  ### Patch Changes
@@ -218,13 +360,13 @@
218
360
  Before
219
361
 
220
362
  ```ts
221
- model.textEmbeddingModel('my-model-id');
363
+ model.textEmbeddingModel("my-model-id");
222
364
  ```
223
365
 
224
366
  After
225
367
 
226
368
  ```ts
227
- model.embeddingModel('my-model-id');
369
+ model.embeddingModel("my-model-id");
228
370
  ```
229
371
 
230
372
  - 95f65c2: chore: use import \* from zod/v4
@@ -424,13 +566,13 @@
424
566
  Before
425
567
 
426
568
  ```ts
427
- model.textEmbeddingModel('my-model-id');
569
+ model.textEmbeddingModel("my-model-id");
428
570
  ```
429
571
 
430
572
  After
431
573
 
432
574
  ```ts
433
- model.embeddingModel('my-model-id');
575
+ model.embeddingModel("my-model-id");
434
576
  ```
435
577
 
436
578
  - Updated dependencies [8d9e8ad]
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  The **[Gladia 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 Gladia transcription API.
5
5
 
6
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Gladia (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 Gladia provider is available in the `@ai-sdk/gladia` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TranscriptionModelV3, ProviderV3 } from '@ai-sdk/provider';
1
+ import { TranscriptionModelV4, ProviderV4 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
@@ -106,24 +106,24 @@ interface GladiaTranscriptionModelConfig extends GladiaConfig {
106
106
  currentDate?: () => Date;
107
107
  };
108
108
  }
109
- declare class GladiaTranscriptionModel implements TranscriptionModelV3 {
109
+ declare class GladiaTranscriptionModel implements TranscriptionModelV4 {
110
110
  readonly modelId: 'default';
111
111
  private readonly config;
112
- readonly specificationVersion = "v3";
112
+ readonly specificationVersion = "v4";
113
113
  get provider(): string;
114
114
  constructor(modelId: 'default', config: GladiaTranscriptionModelConfig);
115
115
  private getArgs;
116
- doGenerate(options: Parameters<TranscriptionModelV3['doGenerate']>[0]): Promise<Awaited<ReturnType<TranscriptionModelV3['doGenerate']>>>;
116
+ doGenerate(options: Parameters<TranscriptionModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<TranscriptionModelV4['doGenerate']>>>;
117
117
  }
118
118
 
119
- interface GladiaProvider extends ProviderV3 {
119
+ interface GladiaProvider extends ProviderV4 {
120
120
  (): {
121
121
  transcription: GladiaTranscriptionModel;
122
122
  };
123
123
  /**
124
124
  * Creates a model for transcription.
125
125
  */
126
- transcription(): TranscriptionModelV3;
126
+ transcription(): TranscriptionModelV4;
127
127
  /**
128
128
  * @deprecated Use `embeddingModel` instead.
129
129
  */