@ai-sdk/lmnt 3.0.0-beta.5 → 3.0.0-beta.50
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 +370 -0
- package/README.md +3 -1
- package/dist/index.d.ts +34 -24
- package/dist/index.js +79 -61
- package/dist/index.js.map +1 -1
- package/docs/140-lmnt.mdx +2 -2
- package/package.json +14 -14
- package/src/index.ts +1 -1
- package/src/lmnt-config.ts +2 -2
- package/src/lmnt-provider.ts +33 -4
- package/src/lmnt-speech-model-options.ts +69 -0
- package/src/lmnt-speech-model.ts +23 -74
- package/dist/index.d.mts +0 -89
- package/dist/index.mjs +0 -216
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,375 @@
|
|
|
1
1
|
# @ai-sdk/lmnt
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.50
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b8396f0: trigger initial beta release
|
|
8
|
+
- Updated dependencies [b8396f0]
|
|
9
|
+
- @ai-sdk/provider-utils@5.0.0-beta.49
|
|
10
|
+
- @ai-sdk/provider@4.0.0-beta.19
|
|
11
|
+
|
|
12
|
+
## 3.0.0-canary.49
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [aeda373]
|
|
17
|
+
- Updated dependencies [375fdd7]
|
|
18
|
+
- Updated dependencies [b4507d5]
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
20
|
+
|
|
21
|
+
## 3.0.0-canary.48
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [bae5e2b]
|
|
26
|
+
- @ai-sdk/provider-utils@5.0.0-canary.47
|
|
27
|
+
|
|
28
|
+
## 3.0.0-canary.47
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [ce769dd]
|
|
33
|
+
- @ai-sdk/provider@4.0.0-canary.18
|
|
34
|
+
- @ai-sdk/provider-utils@5.0.0-canary.46
|
|
35
|
+
|
|
36
|
+
## 3.0.0-canary.46
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [ee798eb]
|
|
41
|
+
- Updated dependencies [daf6637]
|
|
42
|
+
- @ai-sdk/provider-utils@5.0.0-canary.45
|
|
43
|
+
|
|
44
|
+
## 3.0.0-canary.45
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [6c93e36]
|
|
49
|
+
- Updated dependencies [f617ac2]
|
|
50
|
+
- @ai-sdk/provider-utils@5.0.0-canary.44
|
|
51
|
+
|
|
52
|
+
## 3.0.0-canary.44
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
57
|
+
- Updated dependencies [7fc6bd6]
|
|
58
|
+
- @ai-sdk/provider-utils@5.0.0-canary.43
|
|
59
|
+
- @ai-sdk/provider@4.0.0-canary.17
|
|
60
|
+
|
|
61
|
+
## 3.0.0-canary.43
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- Updated dependencies [a6617c5]
|
|
66
|
+
- @ai-sdk/provider-utils@5.0.0-canary.42
|
|
67
|
+
|
|
68
|
+
## 3.0.0-canary.42
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [28dfa06]
|
|
73
|
+
- Updated dependencies [e93fa91]
|
|
74
|
+
- @ai-sdk/provider-utils@5.0.0-canary.41
|
|
75
|
+
|
|
76
|
+
## 3.0.0-canary.41
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [a7de9c9]
|
|
81
|
+
- @ai-sdk/provider-utils@5.0.0-canary.40
|
|
82
|
+
|
|
83
|
+
## 3.0.0-canary.40
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- Updated dependencies [105f95b]
|
|
88
|
+
- @ai-sdk/provider-utils@5.0.0-canary.39
|
|
89
|
+
|
|
90
|
+
## 3.0.0-canary.39
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- Updated dependencies [ca446f8]
|
|
95
|
+
- @ai-sdk/provider-utils@5.0.0-canary.38
|
|
96
|
+
|
|
97
|
+
## 3.0.0-canary.38
|
|
98
|
+
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- Updated dependencies [d848405]
|
|
102
|
+
- @ai-sdk/provider-utils@5.0.0-canary.37
|
|
103
|
+
|
|
104
|
+
## 3.0.0-canary.37
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- Updated dependencies [ca39020]
|
|
109
|
+
- @ai-sdk/provider-utils@5.0.0-canary.36
|
|
110
|
+
|
|
111
|
+
## 3.0.0-canary.36
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- Updated dependencies [f634bac]
|
|
116
|
+
- @ai-sdk/provider-utils@5.0.0-canary.35
|
|
117
|
+
|
|
118
|
+
## 3.0.0-canary.35
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- Updated dependencies [69254e0]
|
|
123
|
+
- Updated dependencies [3015fc3]
|
|
124
|
+
- @ai-sdk/provider-utils@5.0.0-canary.34
|
|
125
|
+
|
|
126
|
+
## 3.0.0-canary.34
|
|
127
|
+
|
|
128
|
+
### Patch Changes
|
|
129
|
+
|
|
130
|
+
- Updated dependencies [2427d88]
|
|
131
|
+
- @ai-sdk/provider-utils@5.0.0-canary.33
|
|
132
|
+
|
|
133
|
+
## 3.0.0-canary.33
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- Updated dependencies [5463d0d]
|
|
138
|
+
- @ai-sdk/provider-utils@5.0.0-canary.32
|
|
139
|
+
- @ai-sdk/provider@4.0.0-canary.16
|
|
140
|
+
|
|
141
|
+
## 3.0.0-canary.32
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- 0c4c275: trigger initial canary release
|
|
146
|
+
- Updated dependencies [0c4c275]
|
|
147
|
+
- @ai-sdk/provider-utils@5.0.0-canary.31
|
|
148
|
+
- @ai-sdk/provider@4.0.0-canary.15
|
|
149
|
+
|
|
150
|
+
## 3.0.0-beta.31
|
|
151
|
+
|
|
152
|
+
### Major Changes
|
|
153
|
+
|
|
154
|
+
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
|
|
155
|
+
|
|
156
|
+
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- Updated dependencies [08d2129]
|
|
161
|
+
- @ai-sdk/provider-utils@5.0.0-beta.30
|
|
162
|
+
|
|
163
|
+
## 3.0.0-beta.30
|
|
164
|
+
|
|
165
|
+
### Patch Changes
|
|
166
|
+
|
|
167
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
168
|
+
- Updated dependencies [9bd6512]
|
|
169
|
+
- Updated dependencies [258c093]
|
|
170
|
+
- Updated dependencies [b6783da]
|
|
171
|
+
- @ai-sdk/provider-utils@5.0.0-beta.29
|
|
172
|
+
- @ai-sdk/provider@4.0.0-beta.14
|
|
173
|
+
|
|
174
|
+
## 3.0.0-beta.29
|
|
175
|
+
|
|
176
|
+
### Patch Changes
|
|
177
|
+
|
|
178
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
179
|
+
- Updated dependencies [9f0e36c]
|
|
180
|
+
- @ai-sdk/provider@4.0.0-beta.13
|
|
181
|
+
- @ai-sdk/provider-utils@5.0.0-beta.28
|
|
182
|
+
|
|
183
|
+
## 3.0.0-beta.28
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- Updated dependencies [785fe16]
|
|
188
|
+
- Updated dependencies [67df0a0]
|
|
189
|
+
- Updated dependencies [befb78c]
|
|
190
|
+
- Updated dependencies [0458559]
|
|
191
|
+
- Updated dependencies [5852c0a]
|
|
192
|
+
- Updated dependencies [fc92055]
|
|
193
|
+
- @ai-sdk/provider-utils@5.0.0-beta.27
|
|
194
|
+
|
|
195
|
+
## 3.0.0-beta.27
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- Updated dependencies [2e98477]
|
|
200
|
+
- @ai-sdk/provider-utils@5.0.0-beta.26
|
|
201
|
+
|
|
202
|
+
## 3.0.0-beta.26
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- Updated dependencies [eea8d98]
|
|
207
|
+
- @ai-sdk/provider-utils@5.0.0-beta.25
|
|
208
|
+
|
|
209
|
+
## 3.0.0-beta.25
|
|
210
|
+
|
|
211
|
+
### Patch Changes
|
|
212
|
+
|
|
213
|
+
- Updated dependencies [f807e45]
|
|
214
|
+
- @ai-sdk/provider-utils@5.0.0-beta.24
|
|
215
|
+
|
|
216
|
+
## 3.0.0-beta.24
|
|
217
|
+
|
|
218
|
+
### Patch Changes
|
|
219
|
+
|
|
220
|
+
- Updated dependencies [350ea38]
|
|
221
|
+
- @ai-sdk/provider-utils@5.0.0-beta.23
|
|
222
|
+
|
|
223
|
+
## 3.0.0-beta.23
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- Updated dependencies [083947b]
|
|
228
|
+
- @ai-sdk/provider-utils@5.0.0-beta.22
|
|
229
|
+
|
|
230
|
+
## 3.0.0-beta.22
|
|
231
|
+
|
|
232
|
+
### Patch Changes
|
|
233
|
+
|
|
234
|
+
- Updated dependencies [add1126]
|
|
235
|
+
- @ai-sdk/provider-utils@5.0.0-beta.21
|
|
236
|
+
|
|
237
|
+
## 3.0.0-beta.21
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- b3976a2: Add workflow serialization support to all provider models.
|
|
242
|
+
|
|
243
|
+
**`@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.
|
|
244
|
+
|
|
245
|
+
**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.
|
|
246
|
+
|
|
247
|
+
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
|
|
248
|
+
|
|
249
|
+
- Updated dependencies [b3976a2]
|
|
250
|
+
- Updated dependencies [ff5eba1]
|
|
251
|
+
- @ai-sdk/provider-utils@5.0.0-beta.20
|
|
252
|
+
- @ai-sdk/provider@4.0.0-beta.12
|
|
253
|
+
|
|
254
|
+
## 3.0.0-beta.20
|
|
255
|
+
|
|
256
|
+
### Major Changes
|
|
257
|
+
|
|
258
|
+
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
|
|
259
|
+
|
|
260
|
+
### Patch Changes
|
|
261
|
+
|
|
262
|
+
- Updated dependencies [ef992f8]
|
|
263
|
+
- @ai-sdk/provider@4.0.0-beta.11
|
|
264
|
+
- @ai-sdk/provider-utils@5.0.0-beta.19
|
|
265
|
+
|
|
266
|
+
## 3.0.0-beta.19
|
|
267
|
+
|
|
268
|
+
### Patch Changes
|
|
269
|
+
|
|
270
|
+
- Updated dependencies [90e2d8a]
|
|
271
|
+
- @ai-sdk/provider-utils@5.0.0-beta.18
|
|
272
|
+
|
|
273
|
+
## 3.0.0-beta.18
|
|
274
|
+
|
|
275
|
+
### Patch Changes
|
|
276
|
+
|
|
277
|
+
- Updated dependencies [3ae1786]
|
|
278
|
+
- @ai-sdk/provider-utils@5.0.0-beta.17
|
|
279
|
+
|
|
280
|
+
## 3.0.0-beta.17
|
|
281
|
+
|
|
282
|
+
### Patch Changes
|
|
283
|
+
|
|
284
|
+
- Updated dependencies [176466a]
|
|
285
|
+
- @ai-sdk/provider@4.0.0-beta.10
|
|
286
|
+
- @ai-sdk/provider-utils@5.0.0-beta.16
|
|
287
|
+
|
|
288
|
+
## 3.0.0-beta.16
|
|
289
|
+
|
|
290
|
+
### Patch Changes
|
|
291
|
+
|
|
292
|
+
- Updated dependencies [e311194]
|
|
293
|
+
- @ai-sdk/provider@4.0.0-beta.9
|
|
294
|
+
- @ai-sdk/provider-utils@5.0.0-beta.15
|
|
295
|
+
|
|
296
|
+
## 3.0.0-beta.15
|
|
297
|
+
|
|
298
|
+
### Patch Changes
|
|
299
|
+
|
|
300
|
+
- Updated dependencies [34bd95d]
|
|
301
|
+
- Updated dependencies [008271d]
|
|
302
|
+
- @ai-sdk/provider@4.0.0-beta.8
|
|
303
|
+
- @ai-sdk/provider-utils@5.0.0-beta.14
|
|
304
|
+
|
|
305
|
+
## 3.0.0-beta.14
|
|
306
|
+
|
|
307
|
+
### Patch Changes
|
|
308
|
+
|
|
309
|
+
- Updated dependencies [b0c2869]
|
|
310
|
+
- Updated dependencies [7e26e81]
|
|
311
|
+
- @ai-sdk/provider-utils@5.0.0-beta.13
|
|
312
|
+
|
|
313
|
+
## 3.0.0-beta.13
|
|
314
|
+
|
|
315
|
+
### Patch Changes
|
|
316
|
+
|
|
317
|
+
- Updated dependencies [46d1149]
|
|
318
|
+
- @ai-sdk/provider-utils@5.0.0-beta.12
|
|
319
|
+
|
|
320
|
+
## 3.0.0-beta.12
|
|
321
|
+
|
|
322
|
+
### Patch Changes
|
|
323
|
+
|
|
324
|
+
- Updated dependencies [6fd51c0]
|
|
325
|
+
- @ai-sdk/provider-utils@5.0.0-beta.11
|
|
326
|
+
- @ai-sdk/provider@4.0.0-beta.7
|
|
327
|
+
|
|
328
|
+
## 3.0.0-beta.11
|
|
329
|
+
|
|
330
|
+
### Patch Changes
|
|
331
|
+
|
|
332
|
+
- Updated dependencies [c29a26f]
|
|
333
|
+
- @ai-sdk/provider-utils@5.0.0-beta.10
|
|
334
|
+
- @ai-sdk/provider@4.0.0-beta.6
|
|
335
|
+
|
|
336
|
+
## 3.0.0-beta.10
|
|
337
|
+
|
|
338
|
+
### Patch Changes
|
|
339
|
+
|
|
340
|
+
- 38fc777: Add AI Gateway hint to provider READMEs
|
|
341
|
+
|
|
342
|
+
## 3.0.0-beta.9
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- Updated dependencies [2e17091]
|
|
347
|
+
- @ai-sdk/provider-utils@5.0.0-beta.9
|
|
348
|
+
|
|
349
|
+
## 3.0.0-beta.8
|
|
350
|
+
|
|
351
|
+
### Patch Changes
|
|
352
|
+
|
|
353
|
+
- Updated dependencies [986c6fd]
|
|
354
|
+
- Updated dependencies [493295c]
|
|
355
|
+
- @ai-sdk/provider-utils@5.0.0-beta.8
|
|
356
|
+
|
|
357
|
+
## 3.0.0-beta.7
|
|
358
|
+
|
|
359
|
+
### Patch Changes
|
|
360
|
+
|
|
361
|
+
- Updated dependencies [1f509d4]
|
|
362
|
+
- @ai-sdk/provider-utils@5.0.0-beta.7
|
|
363
|
+
- @ai-sdk/provider@4.0.0-beta.5
|
|
364
|
+
|
|
365
|
+
## 3.0.0-beta.6
|
|
366
|
+
|
|
367
|
+
### Patch Changes
|
|
368
|
+
|
|
369
|
+
- Updated dependencies [3887c70]
|
|
370
|
+
- @ai-sdk/provider-utils@5.0.0-beta.6
|
|
371
|
+
- @ai-sdk/provider@4.0.0-beta.4
|
|
372
|
+
|
|
3
373
|
## 3.0.0-beta.5
|
|
4
374
|
|
|
5
375
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
The **[LMNT provider](https://ai-sdk.dev/providers/ai-sdk-providers/lmnt)** for the [AI SDK](https://ai-sdk.dev/docs)
|
|
4
4
|
contains language model support for the LMNT API.
|
|
5
5
|
|
|
6
|
+
> **Deploying to Vercel?** With Vercel's AI Gateway you can access LMNT (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 LMNT provider is available in the `@ai-sdk/lmnt` module. You can install it with
|
|
@@ -31,7 +33,7 @@ import { lmnt } from '@ai-sdk/lmnt';
|
|
|
31
33
|
|
|
32
34
|
```ts
|
|
33
35
|
import { lmnt } from '@ai-sdk/lmnt';
|
|
34
|
-
import {
|
|
36
|
+
import { generateSpeech } from 'ai';
|
|
35
37
|
|
|
36
38
|
const result = await generateSpeech({
|
|
37
39
|
model: lmnt.speech('aurora'),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as _ai_sdk_provider from '@ai-sdk/provider';
|
|
1
2
|
import { SpeechModelV4, 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 LMNTConfig = {
|
|
@@ -8,34 +9,13 @@ type LMNTConfig = {
|
|
|
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
17
|
type LMNTSpeechModelId = 'aurora' | 'blizzard' | (string & {});
|
|
17
18
|
|
|
18
|
-
declare const lmntSpeechModelOptionsSchema: z.ZodObject<{
|
|
19
|
-
model: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
20
|
-
aurora: "aurora";
|
|
21
|
-
blizzard: "blizzard";
|
|
22
|
-
}>, z.ZodString]>>>>;
|
|
23
|
-
format: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
24
|
-
aac: "aac";
|
|
25
|
-
mp3: "mp3";
|
|
26
|
-
mulaw: "mulaw";
|
|
27
|
-
raw: "raw";
|
|
28
|
-
wav: "wav";
|
|
29
|
-
}>>>>;
|
|
30
|
-
sampleRate: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<8000>, z.ZodLiteral<16000>, z.ZodLiteral<24000>]>>>>;
|
|
31
|
-
speed: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
32
|
-
seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
-
conversational: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
34
|
-
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
-
topP: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
36
|
-
temperature: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
type LMNTSpeechModelOptions = z.infer<typeof lmntSpeechModelOptionsSchema>;
|
|
39
19
|
interface LMNTSpeechModelConfig extends LMNTConfig {
|
|
40
20
|
_internal?: {
|
|
41
21
|
currentDate?: () => Date;
|
|
@@ -46,12 +26,20 @@ declare class LMNTSpeechModel implements SpeechModelV4 {
|
|
|
46
26
|
private readonly config;
|
|
47
27
|
readonly specificationVersion = "v4";
|
|
48
28
|
get provider(): string;
|
|
29
|
+
static [WORKFLOW_SERIALIZE](model: LMNTSpeechModel): {
|
|
30
|
+
modelId: string;
|
|
31
|
+
config: _ai_sdk_provider.JSONObject;
|
|
32
|
+
};
|
|
33
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
34
|
+
modelId: LMNTSpeechModelId;
|
|
35
|
+
config: LMNTSpeechModelConfig;
|
|
36
|
+
}): LMNTSpeechModel;
|
|
49
37
|
constructor(modelId: LMNTSpeechModelId, config: LMNTSpeechModelConfig);
|
|
50
38
|
private getArgs;
|
|
51
39
|
doGenerate(options: Parameters<SpeechModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<SpeechModelV4['doGenerate']>>>;
|
|
52
40
|
}
|
|
53
41
|
|
|
54
|
-
interface LMNTProvider extends
|
|
42
|
+
interface LMNTProvider extends ProviderV4 {
|
|
55
43
|
(modelId: 'aurora', settings?: {}): {
|
|
56
44
|
speech: LMNTSpeechModel;
|
|
57
45
|
};
|
|
@@ -84,6 +72,28 @@ declare function createLMNT(options?: LMNTProviderSettings): LMNTProvider;
|
|
|
84
72
|
*/
|
|
85
73
|
declare const lmnt: LMNTProvider;
|
|
86
74
|
|
|
75
|
+
declare const lmntSpeechModelOptionsSchema: z.ZodObject<{
|
|
76
|
+
model: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
77
|
+
aurora: "aurora";
|
|
78
|
+
blizzard: "blizzard";
|
|
79
|
+
}>, z.ZodString]>>>>;
|
|
80
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
81
|
+
aac: "aac";
|
|
82
|
+
mp3: "mp3";
|
|
83
|
+
mulaw: "mulaw";
|
|
84
|
+
raw: "raw";
|
|
85
|
+
wav: "wav";
|
|
86
|
+
}>>>>;
|
|
87
|
+
sampleRate: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<8000>, z.ZodLiteral<16000>, z.ZodLiteral<24000>]>>>>;
|
|
88
|
+
speed: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
89
|
+
seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
+
conversational: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
91
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
92
|
+
topP: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
93
|
+
temperature: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
type LMNTSpeechModelOptions = z.infer<typeof lmntSpeechModelOptionsSchema>;
|
|
96
|
+
|
|
87
97
|
declare const VERSION: string;
|
|
88
98
|
|
|
89
99
|
export { type LMNTProvider, type LMNTProviderSettings, type LMNTSpeechModelOptions, VERSION, createLMNT, lmnt };
|