@ai-sdk/vercel 3.0.0-beta.5 → 3.0.0-beta.58

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,472 @@
1
1
  # @ai-sdk/vercel
2
2
 
3
+ ## 3.0.0-beta.58
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0416e3e]
8
+ - @ai-sdk/provider@4.0.0-beta.20
9
+ - @ai-sdk/openai-compatible@3.0.0-beta.58
10
+ - @ai-sdk/provider-utils@5.0.0-beta.50
11
+
12
+ ## 3.0.0-beta.57
13
+
14
+ ### Patch Changes
15
+
16
+ - b8396f0: trigger initial beta release
17
+ - Updated dependencies [b8396f0]
18
+ - @ai-sdk/openai-compatible@3.0.0-beta.57
19
+ - @ai-sdk/provider-utils@5.0.0-beta.49
20
+ - @ai-sdk/provider@4.0.0-beta.19
21
+
22
+ ## 3.0.0-canary.56
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [aeda373]
27
+ - Updated dependencies [375fdd7]
28
+ - Updated dependencies [b4507d5]
29
+ - @ai-sdk/provider-utils@5.0.0-canary.48
30
+ - @ai-sdk/openai-compatible@3.0.0-canary.56
31
+
32
+ ## 3.0.0-canary.55
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [bae5e2b]
37
+ - @ai-sdk/provider-utils@5.0.0-canary.47
38
+ - @ai-sdk/openai-compatible@3.0.0-canary.55
39
+
40
+ ## 3.0.0-canary.54
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [ce769dd]
45
+ - @ai-sdk/provider@4.0.0-canary.18
46
+ - @ai-sdk/openai-compatible@3.0.0-canary.54
47
+ - @ai-sdk/provider-utils@5.0.0-canary.46
48
+
49
+ ## 3.0.0-canary.53
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [ee798eb]
54
+ - Updated dependencies [daf6637]
55
+ - @ai-sdk/provider-utils@5.0.0-canary.45
56
+ - @ai-sdk/openai-compatible@3.0.0-canary.53
57
+
58
+ ## 3.0.0-canary.52
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [6c93e36]
63
+ - Updated dependencies [f617ac2]
64
+ - @ai-sdk/provider-utils@5.0.0-canary.44
65
+ - @ai-sdk/openai-compatible@3.0.0-canary.52
66
+
67
+ ## 3.0.0-canary.51
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [9f1e1ba]
72
+ - @ai-sdk/openai-compatible@3.0.0-canary.51
73
+
74
+ ## 3.0.0-canary.50
75
+
76
+ ### Patch Changes
77
+
78
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
79
+ - Updated dependencies [7fc6bd6]
80
+ - @ai-sdk/openai-compatible@3.0.0-canary.50
81
+ - @ai-sdk/provider-utils@5.0.0-canary.43
82
+ - @ai-sdk/provider@4.0.0-canary.17
83
+
84
+ ## 3.0.0-canary.49
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [a6617c5]
89
+ - @ai-sdk/provider-utils@5.0.0-canary.42
90
+ - @ai-sdk/openai-compatible@3.0.0-canary.49
91
+
92
+ ## 3.0.0-canary.48
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies [28dfa06]
97
+ - Updated dependencies [e93fa91]
98
+ - @ai-sdk/provider-utils@5.0.0-canary.41
99
+ - @ai-sdk/openai-compatible@3.0.0-canary.48
100
+
101
+ ## 3.0.0-canary.47
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [a7de9c9]
106
+ - @ai-sdk/provider-utils@5.0.0-canary.40
107
+ - @ai-sdk/openai-compatible@3.0.0-canary.47
108
+
109
+ ## 3.0.0-canary.46
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies [105f95b]
114
+ - @ai-sdk/provider-utils@5.0.0-canary.39
115
+ - @ai-sdk/openai-compatible@3.0.0-canary.46
116
+
117
+ ## 3.0.0-canary.45
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [ca446f8]
122
+ - @ai-sdk/provider-utils@5.0.0-canary.38
123
+ - @ai-sdk/openai-compatible@3.0.0-canary.45
124
+
125
+ ## 3.0.0-canary.44
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [d848405]
130
+ - @ai-sdk/provider-utils@5.0.0-canary.37
131
+ - @ai-sdk/openai-compatible@3.0.0-canary.44
132
+
133
+ ## 3.0.0-canary.43
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [ca39020]
138
+ - @ai-sdk/provider-utils@5.0.0-canary.36
139
+ - @ai-sdk/openai-compatible@3.0.0-canary.43
140
+
141
+ ## 3.0.0-canary.42
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [f634bac]
146
+ - @ai-sdk/provider-utils@5.0.0-canary.35
147
+ - @ai-sdk/openai-compatible@3.0.0-canary.42
148
+
149
+ ## 3.0.0-canary.41
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [69254e0]
154
+ - Updated dependencies [3015fc3]
155
+ - @ai-sdk/provider-utils@5.0.0-canary.34
156
+ - @ai-sdk/openai-compatible@3.0.0-canary.41
157
+
158
+ ## 3.0.0-canary.40
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [2427d88]
163
+ - @ai-sdk/provider-utils@5.0.0-canary.33
164
+ - @ai-sdk/openai-compatible@3.0.0-canary.40
165
+
166
+ ## 3.0.0-canary.39
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [5463d0d]
171
+ - @ai-sdk/provider-utils@5.0.0-canary.32
172
+ - @ai-sdk/provider@4.0.0-canary.16
173
+ - @ai-sdk/openai-compatible@3.0.0-canary.39
174
+
175
+ ## 3.0.0-canary.38
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies [cd9c311]
180
+ - @ai-sdk/openai-compatible@3.0.0-canary.38
181
+
182
+ ## 3.0.0-canary.37
183
+
184
+ ### Patch Changes
185
+
186
+ - 0c4c275: trigger initial canary release
187
+ - Updated dependencies [0c4c275]
188
+ - @ai-sdk/openai-compatible@3.0.0-canary.37
189
+ - @ai-sdk/provider-utils@5.0.0-canary.31
190
+ - @ai-sdk/provider@4.0.0-canary.15
191
+
192
+ ## 3.0.0-beta.36
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [e59c955]
197
+ - @ai-sdk/openai-compatible@3.0.0-beta.36
198
+
199
+ ## 3.0.0-beta.35
200
+
201
+ ### Patch Changes
202
+
203
+ - Updated dependencies [08d2129]
204
+ - Updated dependencies [04e9009]
205
+ - @ai-sdk/provider-utils@5.0.0-beta.30
206
+ - @ai-sdk/openai-compatible@3.0.0-beta.35
207
+
208
+ ## 3.0.0-beta.34
209
+
210
+ ### Patch Changes
211
+
212
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
213
+ - Updated dependencies [9bd6512]
214
+ - Updated dependencies [258c093]
215
+ - Updated dependencies [b6783da]
216
+ - @ai-sdk/openai-compatible@3.0.0-beta.34
217
+ - @ai-sdk/provider-utils@5.0.0-beta.29
218
+ - @ai-sdk/provider@4.0.0-beta.14
219
+
220
+ ## 3.0.0-beta.33
221
+
222
+ ### Patch Changes
223
+
224
+ - 9f0e36c: trigger release for all packages after provenance setup
225
+ - Updated dependencies [9f0e36c]
226
+ - @ai-sdk/openai-compatible@3.0.0-beta.33
227
+ - @ai-sdk/provider@4.0.0-beta.13
228
+ - @ai-sdk/provider-utils@5.0.0-beta.28
229
+
230
+ ## 3.0.0-beta.32
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [ab81968]
235
+ - Updated dependencies [785fe16]
236
+ - Updated dependencies [67df0a0]
237
+ - Updated dependencies [befb78c]
238
+ - Updated dependencies [0458559]
239
+ - Updated dependencies [58a2ad7]
240
+ - Updated dependencies [5852c0a]
241
+ - Updated dependencies [fc92055]
242
+ - @ai-sdk/openai-compatible@3.0.0-beta.32
243
+ - @ai-sdk/provider-utils@5.0.0-beta.27
244
+
245
+ ## 3.0.0-beta.31
246
+
247
+ ### Patch Changes
248
+
249
+ - Updated dependencies [2e98477]
250
+ - Updated dependencies [bfb756d]
251
+ - @ai-sdk/provider-utils@5.0.0-beta.26
252
+ - @ai-sdk/openai-compatible@3.0.0-beta.31
253
+
254
+ ## 3.0.0-beta.30
255
+
256
+ ### Patch Changes
257
+
258
+ - Updated dependencies [eea8d98]
259
+ - @ai-sdk/provider-utils@5.0.0-beta.25
260
+ - @ai-sdk/openai-compatible@3.0.0-beta.30
261
+
262
+ ## 3.0.0-beta.29
263
+
264
+ ### Patch Changes
265
+
266
+ - Updated dependencies [f807e45]
267
+ - @ai-sdk/provider-utils@5.0.0-beta.24
268
+ - @ai-sdk/openai-compatible@3.0.0-beta.29
269
+
270
+ ## 3.0.0-beta.28
271
+
272
+ ### Patch Changes
273
+
274
+ - Updated dependencies [350ea38]
275
+ - @ai-sdk/provider-utils@5.0.0-beta.23
276
+ - @ai-sdk/openai-compatible@3.0.0-beta.28
277
+
278
+ ## 3.0.0-beta.27
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [083947b]
283
+ - @ai-sdk/provider-utils@5.0.0-beta.22
284
+ - @ai-sdk/openai-compatible@3.0.0-beta.27
285
+
286
+ ## 3.0.0-beta.26
287
+
288
+ ### Patch Changes
289
+
290
+ - Updated dependencies [add1126]
291
+ - @ai-sdk/provider-utils@5.0.0-beta.21
292
+ - @ai-sdk/openai-compatible@3.0.0-beta.26
293
+
294
+ ## 3.0.0-beta.25
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [b3976a2]
299
+ - Updated dependencies [ff5eba1]
300
+ - @ai-sdk/provider-utils@5.0.0-beta.20
301
+ - @ai-sdk/openai-compatible@3.0.0-beta.25
302
+ - @ai-sdk/provider@4.0.0-beta.12
303
+
304
+ ## 3.0.0-beta.24
305
+
306
+ ### Major Changes
307
+
308
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies [ef992f8]
313
+ - @ai-sdk/openai-compatible@3.0.0-beta.24
314
+ - @ai-sdk/provider@4.0.0-beta.11
315
+ - @ai-sdk/provider-utils@5.0.0-beta.19
316
+
317
+ ## 3.0.0-beta.23
318
+
319
+ ### Patch Changes
320
+
321
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
322
+ - Updated dependencies [90e2d8a]
323
+ - @ai-sdk/openai-compatible@3.0.0-beta.23
324
+ - @ai-sdk/provider-utils@5.0.0-beta.18
325
+
326
+ ## 3.0.0-beta.22
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [3ae1786]
331
+ - @ai-sdk/provider-utils@5.0.0-beta.17
332
+ - @ai-sdk/openai-compatible@3.0.0-beta.22
333
+
334
+ ## 3.0.0-beta.21
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [176466a]
339
+ - @ai-sdk/provider@4.0.0-beta.10
340
+ - @ai-sdk/openai-compatible@3.0.0-beta.21
341
+ - @ai-sdk/provider-utils@5.0.0-beta.16
342
+
343
+ ## 3.0.0-beta.20
344
+
345
+ ### Patch Changes
346
+
347
+ - Updated dependencies [e311194]
348
+ - @ai-sdk/provider@4.0.0-beta.9
349
+ - @ai-sdk/openai-compatible@3.0.0-beta.20
350
+ - @ai-sdk/provider-utils@5.0.0-beta.15
351
+
352
+ ## 3.0.0-beta.19
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies [34bd95d]
357
+ - Updated dependencies [008271d]
358
+ - @ai-sdk/provider@4.0.0-beta.8
359
+ - @ai-sdk/openai-compatible@3.0.0-beta.19
360
+ - @ai-sdk/provider-utils@5.0.0-beta.14
361
+
362
+ ## 3.0.0-beta.18
363
+
364
+ ### Patch Changes
365
+
366
+ - Updated dependencies [b0c2869]
367
+ - Updated dependencies [7e26e81]
368
+ - @ai-sdk/provider-utils@5.0.0-beta.13
369
+ - @ai-sdk/openai-compatible@3.0.0-beta.18
370
+
371
+ ## 3.0.0-beta.17
372
+
373
+ ### Patch Changes
374
+
375
+ - Updated dependencies [816ff67]
376
+ - @ai-sdk/openai-compatible@3.0.0-beta.17
377
+
378
+ ## 3.0.0-beta.16
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies [46d1149]
383
+ - @ai-sdk/provider-utils@5.0.0-beta.12
384
+ - @ai-sdk/openai-compatible@3.0.0-beta.16
385
+
386
+ ## 3.0.0-beta.15
387
+
388
+ ### Patch Changes
389
+
390
+ - Updated dependencies [6fd51c0]
391
+ - @ai-sdk/provider-utils@5.0.0-beta.11
392
+ - @ai-sdk/provider@4.0.0-beta.7
393
+ - @ai-sdk/openai-compatible@3.0.0-beta.15
394
+
395
+ ## 3.0.0-beta.14
396
+
397
+ ### Patch Changes
398
+
399
+ - Updated dependencies [c29a26f]
400
+ - @ai-sdk/openai-compatible@3.0.0-beta.14
401
+ - @ai-sdk/provider-utils@5.0.0-beta.10
402
+ - @ai-sdk/provider@4.0.0-beta.6
403
+
404
+ ## 3.0.0-beta.13
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies [38fc777]
409
+ - @ai-sdk/openai-compatible@3.0.0-beta.13
410
+
411
+ ## 3.0.0-beta.12
412
+
413
+ ### Patch Changes
414
+
415
+ - Updated dependencies [2e17091]
416
+ - @ai-sdk/provider-utils@5.0.0-beta.9
417
+ - @ai-sdk/openai-compatible@3.0.0-beta.12
418
+
419
+ ## 3.0.0-beta.11
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies [986c6fd]
424
+ - Updated dependencies [493295c]
425
+ - @ai-sdk/provider-utils@5.0.0-beta.8
426
+ - @ai-sdk/openai-compatible@3.0.0-beta.11
427
+
428
+ ## 3.0.0-beta.10
429
+
430
+ ### Patch Changes
431
+
432
+ - Updated dependencies [1f509d4]
433
+ - @ai-sdk/provider-utils@5.0.0-beta.7
434
+ - @ai-sdk/provider@4.0.0-beta.5
435
+ - @ai-sdk/openai-compatible@3.0.0-beta.10
436
+
437
+ ## 3.0.0-beta.9
438
+
439
+ ### Patch Changes
440
+
441
+ - Updated dependencies [74d520f]
442
+ - @ai-sdk/openai-compatible@3.0.0-beta.9
443
+
444
+ ## 3.0.0-beta.8
445
+
446
+ ### Patch Changes
447
+
448
+ - Updated dependencies [3887c70]
449
+ - @ai-sdk/provider-utils@5.0.0-beta.6
450
+ - @ai-sdk/provider@4.0.0-beta.4
451
+ - @ai-sdk/openai-compatible@3.0.0-beta.8
452
+
453
+ ## 3.0.0-beta.7
454
+
455
+ ### Patch Changes
456
+
457
+ - Updated dependencies [776b617]
458
+ - @ai-sdk/provider-utils@5.0.0-beta.5
459
+ - @ai-sdk/provider@4.0.0-beta.3
460
+ - @ai-sdk/openai-compatible@3.0.0-beta.7
461
+
462
+ ## 3.0.0-beta.6
463
+
464
+ ### Patch Changes
465
+
466
+ - Updated dependencies [61753c3]
467
+ - @ai-sdk/provider-utils@5.0.0-beta.4
468
+ - @ai-sdk/openai-compatible@3.0.0-beta.6
469
+
3
470
  ## 3.0.0-beta.5
4
471
 
5
472
  ### Patch Changes
@@ -361,13 +828,13 @@
361
828
  Before
362
829
 
363
830
  ```ts
364
- model.textEmbeddingModel('my-model-id');
831
+ model.textEmbeddingModel("my-model-id");
365
832
  ```
366
833
 
367
834
  After
368
835
 
369
836
  ```ts
370
- model.embeddingModel('my-model-id');
837
+ model.embeddingModel("my-model-id");
371
838
  ```
372
839
 
373
840
  - ed329cb: feat: `Provider-V3`
@@ -587,13 +1054,13 @@
587
1054
  Before
588
1055
 
589
1056
  ```ts
590
- model.textEmbeddingModel('my-model-id');
1057
+ model.textEmbeddingModel("my-model-id");
591
1058
  ```
592
1059
 
593
1060
  After
594
1061
 
595
1062
  ```ts
596
- model.embeddingModel('my-model-id');
1063
+ model.embeddingModel("my-model-id");
597
1064
  ```
598
1065
 
599
1066
  - Updated dependencies [8d9e8ad]
package/dist/index.js CHANGED
@@ -1,48 +1,26 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- VERSION: () => VERSION,
24
- createVercel: () => createVercel,
25
- vercel: () => vercel
26
- });
27
- module.exports = __toCommonJS(index_exports);
28
-
29
1
  // src/vercel-provider.ts
30
- var import_provider = require("@ai-sdk/provider");
31
- var import_openai_compatible = require("@ai-sdk/openai-compatible");
32
- var import_provider_utils = require("@ai-sdk/provider-utils");
2
+ import {
3
+ NoSuchModelError
4
+ } from "@ai-sdk/provider";
5
+ import { OpenAICompatibleChatLanguageModel } from "@ai-sdk/openai-compatible";
6
+ import {
7
+ loadApiKey,
8
+ withoutTrailingSlash,
9
+ withUserAgentSuffix
10
+ } from "@ai-sdk/provider-utils";
33
11
 
34
12
  // src/version.ts
35
- var VERSION = true ? "3.0.0-beta.5" : "0.0.0-test";
13
+ var VERSION = true ? "3.0.0-beta.58" : "0.0.0-test";
36
14
 
37
15
  // src/vercel-provider.ts
38
16
  function createVercel(options = {}) {
39
17
  var _a;
40
- const baseURL = (0, import_provider_utils.withoutTrailingSlash)(
18
+ const baseURL = withoutTrailingSlash(
41
19
  (_a = options.baseURL) != null ? _a : "https://api.v0.dev/v1"
42
20
  );
43
- const getHeaders = () => (0, import_provider_utils.withUserAgentSuffix)(
21
+ const getHeaders = () => withUserAgentSuffix(
44
22
  {
45
- Authorization: `Bearer ${(0, import_provider_utils.loadApiKey)({
23
+ Authorization: `Bearer ${loadApiKey({
46
24
  apiKey: options.apiKey,
47
25
  environmentVariableName: "VERCEL_API_KEY",
48
26
  description: "Vercel"
@@ -58,7 +36,7 @@ function createVercel(options = {}) {
58
36
  fetch: options.fetch
59
37
  });
60
38
  const createChatModel = (modelId) => {
61
- return new import_openai_compatible.OpenAICompatibleChatLanguageModel(modelId, {
39
+ return new OpenAICompatibleChatLanguageModel(modelId, {
62
40
  ...getCommonModelConfig("chat")
63
41
  });
64
42
  };
@@ -66,19 +44,18 @@ function createVercel(options = {}) {
66
44
  provider.specificationVersion = "v4";
67
45
  provider.languageModel = createChatModel;
68
46
  provider.embeddingModel = (modelId) => {
69
- throw new import_provider.NoSuchModelError({ modelId, modelType: "embeddingModel" });
47
+ throw new NoSuchModelError({ modelId, modelType: "embeddingModel" });
70
48
  };
71
49
  provider.textEmbeddingModel = provider.embeddingModel;
72
50
  provider.imageModel = (modelId) => {
73
- throw new import_provider.NoSuchModelError({ modelId, modelType: "imageModel" });
51
+ throw new NoSuchModelError({ modelId, modelType: "imageModel" });
74
52
  };
75
53
  return provider;
76
54
  }
77
55
  var vercel = createVercel();
78
- // Annotate the CommonJS export names for ESM import in node:
79
- 0 && (module.exports = {
56
+ export {
80
57
  VERSION,
81
58
  createVercel,
82
59
  vercel
83
- });
60
+ };
84
61
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/vercel-provider.ts","../src/version.ts"],"sourcesContent":["export { createVercel, vercel } from './vercel-provider';\nexport type { VercelProvider, VercelProviderSettings } from './vercel-provider';\nexport type { OpenAICompatibleErrorData as VercelErrorData } from '@ai-sdk/openai-compatible';\nexport { VERSION } from './version';\n","import {\n LanguageModelV4,\n NoSuchModelError,\n ProviderV4,\n} from '@ai-sdk/provider';\nimport { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n FetchFunction,\n loadApiKey,\n withoutTrailingSlash,\n withUserAgentSuffix,\n} from '@ai-sdk/provider-utils';\nimport { VercelChatModelId } from './vercel-chat-options';\nimport { VERSION } from './version';\n\nexport interface VercelProviderSettings {\n /**\n * Vercel API key.\n */\n apiKey?: string;\n /**\n * Base URL for the API calls.\n */\n baseURL?: string;\n /**\n * Custom headers to include in the requests.\n */\n headers?: Record<string, string>;\n /**\n * Custom fetch implementation. You can use it as a middleware to intercept requests,\n * or to provide a custom fetch implementation for e.g. testing.\n */\n fetch?: FetchFunction;\n}\n\nexport interface VercelProvider extends ProviderV4 {\n /**\n * Creates a model for text generation.\n */\n (modelId: VercelChatModelId): LanguageModelV4;\n\n /**\n * Creates a language model for text generation.\n */\n languageModel(modelId: VercelChatModelId): LanguageModelV4;\n\n /**\n * @deprecated Use `embeddingModel` instead.\n */\n textEmbeddingModel(modelId: string): never;\n}\n\nexport function createVercel(\n options: VercelProviderSettings = {},\n): VercelProvider {\n const baseURL = withoutTrailingSlash(\n options.baseURL ?? 'https://api.v0.dev/v1',\n );\n const getHeaders = () =>\n withUserAgentSuffix(\n {\n Authorization: `Bearer ${loadApiKey({\n apiKey: options.apiKey,\n environmentVariableName: 'VERCEL_API_KEY',\n description: 'Vercel',\n })}`,\n ...options.headers,\n },\n `ai-sdk/vercel/${VERSION}`,\n );\n\n interface CommonModelConfig {\n provider: string;\n url: ({ path }: { path: string }) => string;\n headers: () => Record<string, string>;\n fetch?: FetchFunction;\n }\n\n const getCommonModelConfig = (modelType: string): CommonModelConfig => ({\n provider: `vercel.${modelType}`,\n url: ({ path }) => `${baseURL}${path}`,\n headers: getHeaders,\n fetch: options.fetch,\n });\n\n const createChatModel = (modelId: VercelChatModelId) => {\n return new OpenAICompatibleChatLanguageModel(modelId, {\n ...getCommonModelConfig('chat'),\n });\n };\n\n const provider = (modelId: VercelChatModelId) => createChatModel(modelId);\n\n provider.specificationVersion = 'v4' as const;\n provider.languageModel = createChatModel;\n provider.embeddingModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'embeddingModel' });\n };\n provider.textEmbeddingModel = provider.embeddingModel;\n provider.imageModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n return provider;\n}\n\nexport const vercel = createVercel();\n","// Version string of this package injected at build time.\ndeclare const __PACKAGE_VERSION__: string | undefined;\nexport const VERSION: string =\n typeof __PACKAGE_VERSION__ !== 'undefined'\n ? __PACKAGE_VERSION__\n : '0.0.0-test';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAIO;AACP,+BAAkD;AAClD,4BAKO;;;ACTA,IAAM,UACX,OACI,iBACA;;;AD+CC,SAAS,aACd,UAAkC,CAAC,GACnB;AAtDlB;AAuDE,QAAM,cAAU;AAAA,KACd,aAAQ,YAAR,YAAmB;AAAA,EACrB;AACA,QAAM,aAAa,UACjB;AAAA,IACE;AAAA,MACE,eAAe,cAAU,kCAAW;AAAA,QAClC,QAAQ,QAAQ;AAAA,QAChB,yBAAyB;AAAA,QACzB,aAAa;AAAA,MACf,CAAC,CAAC;AAAA,MACF,GAAG,QAAQ;AAAA,IACb;AAAA,IACA,iBAAiB,OAAO;AAAA,EAC1B;AASF,QAAM,uBAAuB,CAAC,eAA0C;AAAA,IACtE,UAAU,UAAU,SAAS;AAAA,IAC7B,KAAK,CAAC,EAAE,KAAK,MAAM,GAAG,OAAO,GAAG,IAAI;AAAA,IACpC,SAAS;AAAA,IACT,OAAO,QAAQ;AAAA,EACjB;AAEA,QAAM,kBAAkB,CAAC,YAA+B;AACtD,WAAO,IAAI,2DAAkC,SAAS;AAAA,MACpD,GAAG,qBAAqB,MAAM;AAAA,IAChC,CAAC;AAAA,EACH;AAEA,QAAM,WAAW,CAAC,YAA+B,gBAAgB,OAAO;AAExE,WAAS,uBAAuB;AAChC,WAAS,gBAAgB;AACzB,WAAS,iBAAiB,CAAC,YAAoB;AAC7C,UAAM,IAAI,iCAAiB,EAAE,SAAS,WAAW,iBAAiB,CAAC;AAAA,EACrE;AACA,WAAS,qBAAqB,SAAS;AACvC,WAAS,aAAa,CAAC,YAAoB;AACzC,UAAM,IAAI,iCAAiB,EAAE,SAAS,WAAW,aAAa,CAAC;AAAA,EACjE;AAEA,SAAO;AACT;AAEO,IAAM,SAAS,aAAa;","names":[]}
1
+ {"version":3,"sources":["../src/vercel-provider.ts","../src/version.ts"],"sourcesContent":["import {\n NoSuchModelError,\n type LanguageModelV4,\n type ProviderV4,\n} from '@ai-sdk/provider';\nimport { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n loadApiKey,\n withoutTrailingSlash,\n withUserAgentSuffix,\n type FetchFunction,\n} from '@ai-sdk/provider-utils';\nimport type { VercelChatModelId } from './vercel-chat-options';\nimport { VERSION } from './version';\n\nexport interface VercelProviderSettings {\n /**\n * Vercel API key.\n */\n apiKey?: string;\n /**\n * Base URL for the API calls.\n */\n baseURL?: string;\n /**\n * Custom headers to include in the requests.\n */\n headers?: Record<string, string>;\n /**\n * Custom fetch implementation. You can use it as a middleware to intercept requests,\n * or to provide a custom fetch implementation for e.g. testing.\n */\n fetch?: FetchFunction;\n}\n\nexport interface VercelProvider extends ProviderV4 {\n /**\n * Creates a model for text generation.\n */\n (modelId: VercelChatModelId): LanguageModelV4;\n\n /**\n * Creates a language model for text generation.\n */\n languageModel(modelId: VercelChatModelId): LanguageModelV4;\n\n /**\n * @deprecated Use `embeddingModel` instead.\n */\n textEmbeddingModel(modelId: string): never;\n}\n\nexport function createVercel(\n options: VercelProviderSettings = {},\n): VercelProvider {\n const baseURL = withoutTrailingSlash(\n options.baseURL ?? 'https://api.v0.dev/v1',\n );\n const getHeaders = () =>\n withUserAgentSuffix(\n {\n Authorization: `Bearer ${loadApiKey({\n apiKey: options.apiKey,\n environmentVariableName: 'VERCEL_API_KEY',\n description: 'Vercel',\n })}`,\n ...options.headers,\n },\n `ai-sdk/vercel/${VERSION}`,\n );\n\n interface CommonModelConfig {\n provider: string;\n url: ({ path }: { path: string }) => string;\n headers: () => Record<string, string>;\n fetch?: FetchFunction;\n }\n\n const getCommonModelConfig = (modelType: string): CommonModelConfig => ({\n provider: `vercel.${modelType}`,\n url: ({ path }) => `${baseURL}${path}`,\n headers: getHeaders,\n fetch: options.fetch,\n });\n\n const createChatModel = (modelId: VercelChatModelId) => {\n return new OpenAICompatibleChatLanguageModel(modelId, {\n ...getCommonModelConfig('chat'),\n });\n };\n\n const provider = (modelId: VercelChatModelId) => createChatModel(modelId);\n\n provider.specificationVersion = 'v4' as const;\n provider.languageModel = createChatModel;\n provider.embeddingModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'embeddingModel' });\n };\n provider.textEmbeddingModel = provider.embeddingModel;\n provider.imageModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n return provider;\n}\n\nexport const vercel = createVercel();\n","// Version string of this package injected at build time.\ndeclare const __PACKAGE_VERSION__: string | undefined;\nexport const VERSION: string =\n typeof __PACKAGE_VERSION__ !== 'undefined'\n ? __PACKAGE_VERSION__\n : '0.0.0-test';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,OAGK;AACP,SAAS,yCAAyC;AAClD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;;;ACTA,IAAM,UACX,OACI,kBACA;;;AD+CC,SAAS,aACd,UAAkC,CAAC,GACnB;AAtDlB;AAuDE,QAAM,UAAU;AAAA,KACd,aAAQ,YAAR,YAAmB;AAAA,EACrB;AACA,QAAM,aAAa,MACjB;AAAA,IACE;AAAA,MACE,eAAe,UAAU,WAAW;AAAA,QAClC,QAAQ,QAAQ;AAAA,QAChB,yBAAyB;AAAA,QACzB,aAAa;AAAA,MACf,CAAC,CAAC;AAAA,MACF,GAAG,QAAQ;AAAA,IACb;AAAA,IACA,iBAAiB,OAAO;AAAA,EAC1B;AASF,QAAM,uBAAuB,CAAC,eAA0C;AAAA,IACtE,UAAU,UAAU,SAAS;AAAA,IAC7B,KAAK,CAAC,EAAE,KAAK,MAAM,GAAG,OAAO,GAAG,IAAI;AAAA,IACpC,SAAS;AAAA,IACT,OAAO,QAAQ;AAAA,EACjB;AAEA,QAAM,kBAAkB,CAAC,YAA+B;AACtD,WAAO,IAAI,kCAAkC,SAAS;AAAA,MACpD,GAAG,qBAAqB,MAAM;AAAA,IAChC,CAAC;AAAA,EACH;AAEA,QAAM,WAAW,CAAC,YAA+B,gBAAgB,OAAO;AAExE,WAAS,uBAAuB;AAChC,WAAS,gBAAgB;AACzB,WAAS,iBAAiB,CAAC,YAAoB;AAC7C,UAAM,IAAI,iBAAiB,EAAE,SAAS,WAAW,iBAAiB,CAAC;AAAA,EACrE;AACA,WAAS,qBAAqB,SAAS;AACvC,WAAS,aAAa,CAAC,YAAoB;AACzC,UAAM,IAAI,iBAAiB,EAAE,SAAS,WAAW,aAAa,CAAC;AAAA,EACjE;AAEA,SAAO;AACT;AAEO,IAAM,SAAS,aAAa;","names":[]}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@ai-sdk/vercel",
3
- "version": "3.0.0-beta.5",
3
+ "version": "3.0.0-beta.58",
4
+ "type": "module",
4
5
  "license": "Apache-2.0",
5
6
  "sideEffects": false,
6
7
  "main": "./dist/index.js",
7
- "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
9
9
  "files": [
10
10
  "dist/**/*",
@@ -24,18 +24,18 @@
24
24
  "./package.json": "./package.json",
25
25
  ".": {
26
26
  "types": "./dist/index.d.ts",
27
- "import": "./dist/index.mjs",
28
- "require": "./dist/index.js"
27
+ "import": "./dist/index.js",
28
+ "default": "./dist/index.js"
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@ai-sdk/openai-compatible": "3.0.0-beta.5",
33
- "@ai-sdk/provider": "4.0.0-beta.2",
34
- "@ai-sdk/provider-utils": "5.0.0-beta.3"
32
+ "@ai-sdk/openai-compatible": "3.0.0-beta.58",
33
+ "@ai-sdk/provider-utils": "5.0.0-beta.50",
34
+ "@ai-sdk/provider": "4.0.0-beta.20"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "20.17.24",
38
- "tsup": "^8",
37
+ "@types/node": "22.19.19",
38
+ "tsup": "^8.5.1",
39
39
  "typescript": "5.8.3",
40
40
  "zod": "3.25.76",
41
41
  "@vercel/ai-tsconfig": "0.0.0"
@@ -44,15 +44,17 @@
44
44
  "zod": "^3.25.76 || ^4.1.8"
45
45
  },
46
46
  "engines": {
47
- "node": ">=18"
47
+ "node": ">=22"
48
48
  },
49
49
  "publishConfig": {
50
- "access": "public"
50
+ "access": "public",
51
+ "provenance": true
51
52
  },
52
53
  "homepage": "https://ai-sdk.dev/docs",
53
54
  "repository": {
54
55
  "type": "git",
55
- "url": "git+https://github.com/vercel/ai.git"
56
+ "url": "https://github.com/vercel/ai",
57
+ "directory": "packages/vercel"
56
58
  },
57
59
  "bugs": {
58
60
  "url": "https://github.com/vercel/ai/issues"
@@ -64,9 +66,7 @@
64
66
  "build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
65
67
  "build:watch": "pnpm clean && tsup --watch",
66
68
  "clean": "del-cli dist docs *.tsbuildinfo",
67
- "lint": "eslint \"./**/*.ts*\"",
68
69
  "type-check": "tsc --build",
69
- "prettier-check": "prettier --check \"./**/*.ts*\"",
70
70
  "test": "pnpm test:node && pnpm test:edge",
71
71
  "test:update": "pnpm test:node -u",
72
72
  "test:watch": "vitest --config vitest.node.config.js",
@@ -1,16 +1,16 @@
1
1
  import {
2
- LanguageModelV4,
3
2
  NoSuchModelError,
4
- ProviderV4,
3
+ type LanguageModelV4,
4
+ type ProviderV4,
5
5
  } from '@ai-sdk/provider';
6
6
  import { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';
7
7
  import {
8
- FetchFunction,
9
8
  loadApiKey,
10
9
  withoutTrailingSlash,
11
10
  withUserAgentSuffix,
11
+ type FetchFunction,
12
12
  } from '@ai-sdk/provider-utils';
13
- import { VercelChatModelId } from './vercel-chat-options';
13
+ import type { VercelChatModelId } from './vercel-chat-options';
14
14
  import { VERSION } from './version';
15
15
 
16
16
  export interface VercelProviderSettings {
package/dist/index.d.mts DELETED
@@ -1,45 +0,0 @@
1
- import { ProviderV4, LanguageModelV4 } from '@ai-sdk/provider';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
- export { OpenAICompatibleErrorData as VercelErrorData } from '@ai-sdk/openai-compatible';
4
-
5
- type VercelChatModelId = 'v0-1.0-md' | 'v0-1.5-md' | 'v0-1.5-lg' | (string & {});
6
-
7
- interface VercelProviderSettings {
8
- /**
9
- * Vercel API key.
10
- */
11
- apiKey?: string;
12
- /**
13
- * Base URL for the API calls.
14
- */
15
- baseURL?: string;
16
- /**
17
- * Custom headers to include in the requests.
18
- */
19
- headers?: Record<string, string>;
20
- /**
21
- * Custom fetch implementation. You can use it as a middleware to intercept requests,
22
- * or to provide a custom fetch implementation for e.g. testing.
23
- */
24
- fetch?: FetchFunction;
25
- }
26
- interface VercelProvider extends ProviderV4 {
27
- /**
28
- * Creates a model for text generation.
29
- */
30
- (modelId: VercelChatModelId): LanguageModelV4;
31
- /**
32
- * Creates a language model for text generation.
33
- */
34
- languageModel(modelId: VercelChatModelId): LanguageModelV4;
35
- /**
36
- * @deprecated Use `embeddingModel` instead.
37
- */
38
- textEmbeddingModel(modelId: string): never;
39
- }
40
- declare function createVercel(options?: VercelProviderSettings): VercelProvider;
41
- declare const vercel: VercelProvider;
42
-
43
- declare const VERSION: string;
44
-
45
- export { VERSION, type VercelProvider, type VercelProviderSettings, createVercel, vercel };
package/dist/index.mjs DELETED
@@ -1,61 +0,0 @@
1
- // src/vercel-provider.ts
2
- import {
3
- NoSuchModelError
4
- } from "@ai-sdk/provider";
5
- import { OpenAICompatibleChatLanguageModel } from "@ai-sdk/openai-compatible";
6
- import {
7
- loadApiKey,
8
- withoutTrailingSlash,
9
- withUserAgentSuffix
10
- } from "@ai-sdk/provider-utils";
11
-
12
- // src/version.ts
13
- var VERSION = true ? "3.0.0-beta.5" : "0.0.0-test";
14
-
15
- // src/vercel-provider.ts
16
- function createVercel(options = {}) {
17
- var _a;
18
- const baseURL = withoutTrailingSlash(
19
- (_a = options.baseURL) != null ? _a : "https://api.v0.dev/v1"
20
- );
21
- const getHeaders = () => withUserAgentSuffix(
22
- {
23
- Authorization: `Bearer ${loadApiKey({
24
- apiKey: options.apiKey,
25
- environmentVariableName: "VERCEL_API_KEY",
26
- description: "Vercel"
27
- })}`,
28
- ...options.headers
29
- },
30
- `ai-sdk/vercel/${VERSION}`
31
- );
32
- const getCommonModelConfig = (modelType) => ({
33
- provider: `vercel.${modelType}`,
34
- url: ({ path }) => `${baseURL}${path}`,
35
- headers: getHeaders,
36
- fetch: options.fetch
37
- });
38
- const createChatModel = (modelId) => {
39
- return new OpenAICompatibleChatLanguageModel(modelId, {
40
- ...getCommonModelConfig("chat")
41
- });
42
- };
43
- const provider = (modelId) => createChatModel(modelId);
44
- provider.specificationVersion = "v4";
45
- provider.languageModel = createChatModel;
46
- provider.embeddingModel = (modelId) => {
47
- throw new NoSuchModelError({ modelId, modelType: "embeddingModel" });
48
- };
49
- provider.textEmbeddingModel = provider.embeddingModel;
50
- provider.imageModel = (modelId) => {
51
- throw new NoSuchModelError({ modelId, modelType: "imageModel" });
52
- };
53
- return provider;
54
- }
55
- var vercel = createVercel();
56
- export {
57
- VERSION,
58
- createVercel,
59
- vercel
60
- };
61
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/vercel-provider.ts","../src/version.ts"],"sourcesContent":["import {\n LanguageModelV4,\n NoSuchModelError,\n ProviderV4,\n} from '@ai-sdk/provider';\nimport { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n FetchFunction,\n loadApiKey,\n withoutTrailingSlash,\n withUserAgentSuffix,\n} from '@ai-sdk/provider-utils';\nimport { VercelChatModelId } from './vercel-chat-options';\nimport { VERSION } from './version';\n\nexport interface VercelProviderSettings {\n /**\n * Vercel API key.\n */\n apiKey?: string;\n /**\n * Base URL for the API calls.\n */\n baseURL?: string;\n /**\n * Custom headers to include in the requests.\n */\n headers?: Record<string, string>;\n /**\n * Custom fetch implementation. You can use it as a middleware to intercept requests,\n * or to provide a custom fetch implementation for e.g. testing.\n */\n fetch?: FetchFunction;\n}\n\nexport interface VercelProvider extends ProviderV4 {\n /**\n * Creates a model for text generation.\n */\n (modelId: VercelChatModelId): LanguageModelV4;\n\n /**\n * Creates a language model for text generation.\n */\n languageModel(modelId: VercelChatModelId): LanguageModelV4;\n\n /**\n * @deprecated Use `embeddingModel` instead.\n */\n textEmbeddingModel(modelId: string): never;\n}\n\nexport function createVercel(\n options: VercelProviderSettings = {},\n): VercelProvider {\n const baseURL = withoutTrailingSlash(\n options.baseURL ?? 'https://api.v0.dev/v1',\n );\n const getHeaders = () =>\n withUserAgentSuffix(\n {\n Authorization: `Bearer ${loadApiKey({\n apiKey: options.apiKey,\n environmentVariableName: 'VERCEL_API_KEY',\n description: 'Vercel',\n })}`,\n ...options.headers,\n },\n `ai-sdk/vercel/${VERSION}`,\n );\n\n interface CommonModelConfig {\n provider: string;\n url: ({ path }: { path: string }) => string;\n headers: () => Record<string, string>;\n fetch?: FetchFunction;\n }\n\n const getCommonModelConfig = (modelType: string): CommonModelConfig => ({\n provider: `vercel.${modelType}`,\n url: ({ path }) => `${baseURL}${path}`,\n headers: getHeaders,\n fetch: options.fetch,\n });\n\n const createChatModel = (modelId: VercelChatModelId) => {\n return new OpenAICompatibleChatLanguageModel(modelId, {\n ...getCommonModelConfig('chat'),\n });\n };\n\n const provider = (modelId: VercelChatModelId) => createChatModel(modelId);\n\n provider.specificationVersion = 'v4' as const;\n provider.languageModel = createChatModel;\n provider.embeddingModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'embeddingModel' });\n };\n provider.textEmbeddingModel = provider.embeddingModel;\n provider.imageModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n return provider;\n}\n\nexport const vercel = createVercel();\n","// Version string of this package injected at build time.\ndeclare const __PACKAGE_VERSION__: string | undefined;\nexport const VERSION: string =\n typeof __PACKAGE_VERSION__ !== 'undefined'\n ? __PACKAGE_VERSION__\n : '0.0.0-test';\n"],"mappings":";AAAA;AAAA,EAEE;AAAA,OAEK;AACP,SAAS,yCAAyC;AAClD;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACTA,IAAM,UACX,OACI,iBACA;;;AD+CC,SAAS,aACd,UAAkC,CAAC,GACnB;AAtDlB;AAuDE,QAAM,UAAU;AAAA,KACd,aAAQ,YAAR,YAAmB;AAAA,EACrB;AACA,QAAM,aAAa,MACjB;AAAA,IACE;AAAA,MACE,eAAe,UAAU,WAAW;AAAA,QAClC,QAAQ,QAAQ;AAAA,QAChB,yBAAyB;AAAA,QACzB,aAAa;AAAA,MACf,CAAC,CAAC;AAAA,MACF,GAAG,QAAQ;AAAA,IACb;AAAA,IACA,iBAAiB,OAAO;AAAA,EAC1B;AASF,QAAM,uBAAuB,CAAC,eAA0C;AAAA,IACtE,UAAU,UAAU,SAAS;AAAA,IAC7B,KAAK,CAAC,EAAE,KAAK,MAAM,GAAG,OAAO,GAAG,IAAI;AAAA,IACpC,SAAS;AAAA,IACT,OAAO,QAAQ;AAAA,EACjB;AAEA,QAAM,kBAAkB,CAAC,YAA+B;AACtD,WAAO,IAAI,kCAAkC,SAAS;AAAA,MACpD,GAAG,qBAAqB,MAAM;AAAA,IAChC,CAAC;AAAA,EACH;AAEA,QAAM,WAAW,CAAC,YAA+B,gBAAgB,OAAO;AAExE,WAAS,uBAAuB;AAChC,WAAS,gBAAgB;AACzB,WAAS,iBAAiB,CAAC,YAAoB;AAC7C,UAAM,IAAI,iBAAiB,EAAE,SAAS,WAAW,iBAAiB,CAAC;AAAA,EACrE;AACA,WAAS,qBAAqB,SAAS;AACvC,WAAS,aAAa,CAAC,YAAoB;AACzC,UAAM,IAAI,iBAAiB,EAAE,SAAS,WAAW,aAAa,CAAC;AAAA,EACjE;AAEA,SAAO;AACT;AAEO,IAAM,SAAS,aAAa;","names":[]}