@ai-sdk/vercel 0.0.0-64aae7dd-20260114144918

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 ADDED
@@ -0,0 +1,1027 @@
1
+ # @ai-sdk/vercel
2
+
3
+ ## 0.0.0-64aae7dd-20260114144918
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9fbe723]
8
+ - @ai-sdk/provider-utils@0.0.0-64aae7dd-20260114144918
9
+ - @ai-sdk/provider@0.0.0-64aae7dd-20260114144918
10
+ - @ai-sdk/openai-compatible@0.0.0-64aae7dd-20260114144918
11
+
12
+ ## 2.0.9
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [bc02a3c]
17
+ - @ai-sdk/openai-compatible@2.0.9
18
+
19
+ ## 2.0.8
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [78fcb18]
24
+ - @ai-sdk/openai-compatible@2.0.8
25
+
26
+ ## 2.0.7
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [cd7bb0e]
31
+ - @ai-sdk/openai-compatible@2.0.7
32
+
33
+ ## 2.0.6
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [34d1c8a]
38
+ - @ai-sdk/provider-utils@4.0.5
39
+ - @ai-sdk/openai-compatible@2.0.6
40
+
41
+ ## 2.0.5
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [d54c380]
46
+ - @ai-sdk/openai-compatible@2.0.5
47
+
48
+ ## 2.0.4
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [d937c8f]
53
+ - @ai-sdk/provider@3.0.2
54
+ - @ai-sdk/openai-compatible@2.0.4
55
+ - @ai-sdk/provider-utils@4.0.4
56
+
57
+ ## 2.0.3
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [0b429d4]
62
+ - @ai-sdk/provider-utils@4.0.3
63
+ - @ai-sdk/openai-compatible@2.0.3
64
+
65
+ ## 2.0.2
66
+
67
+ ### Patch Changes
68
+
69
+ - 863d34f: fix: trigger release to update `@latest`
70
+ - Updated dependencies [863d34f]
71
+ - @ai-sdk/openai-compatible@2.0.2
72
+ - @ai-sdk/provider@3.0.1
73
+ - @ai-sdk/provider-utils@4.0.2
74
+
75
+ ## 2.0.1
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [29264a3]
80
+ - @ai-sdk/provider-utils@4.0.1
81
+ - @ai-sdk/openai-compatible@2.0.1
82
+
83
+ ## 2.0.0
84
+
85
+ ### Major Changes
86
+
87
+ - dee8b05: ai SDK 6 beta
88
+
89
+ ### Minor Changes
90
+
91
+ - 78928cb: release: start 5.1 beta
92
+
93
+ ### Patch Changes
94
+
95
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
96
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
97
+
98
+ Before
99
+
100
+ ```ts
101
+ model.textEmbeddingModel('my-model-id');
102
+ ```
103
+
104
+ After
105
+
106
+ ```ts
107
+ model.embeddingModel('my-model-id');
108
+ ```
109
+
110
+ - ed329cb: feat: `Provider-V3`
111
+ - 1cad0ab: feat: add provider version to user-agent header
112
+ - 8dac895: feat: `LanguageModelV3`
113
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
114
+ - 4616b86: chore: update zod peer depenedency version
115
+ - Updated dependencies
116
+ - @ai-sdk/openai-compatible@2.0.0
117
+ - @ai-sdk/provider@3.0.0
118
+ - @ai-sdk/provider-utils@4.0.0
119
+
120
+ ## 2.0.0-beta.60
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [475189e]
125
+ - @ai-sdk/provider@3.0.0-beta.32
126
+ - @ai-sdk/openai-compatible@2.0.0-beta.60
127
+ - @ai-sdk/provider-utils@4.0.0-beta.59
128
+
129
+ ## 2.0.0-beta.59
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [2625a04]
134
+ - @ai-sdk/openai-compatible@2.0.0-beta.59
135
+ - @ai-sdk/provider@3.0.0-beta.31
136
+ - @ai-sdk/provider-utils@4.0.0-beta.58
137
+
138
+ ## 2.0.0-beta.58
139
+
140
+ ### Patch Changes
141
+
142
+ - Updated dependencies [cbf52cd]
143
+ - @ai-sdk/openai-compatible@2.0.0-beta.58
144
+ - @ai-sdk/provider@3.0.0-beta.30
145
+ - @ai-sdk/provider-utils@4.0.0-beta.57
146
+
147
+ ## 2.0.0-beta.57
148
+
149
+ ### Patch Changes
150
+
151
+ - Updated dependencies [9549c9e]
152
+ - @ai-sdk/provider@3.0.0-beta.29
153
+ - @ai-sdk/openai-compatible@2.0.0-beta.57
154
+ - @ai-sdk/provider-utils@4.0.0-beta.56
155
+
156
+ ## 2.0.0-beta.56
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [50b70d6]
161
+ - @ai-sdk/provider-utils@4.0.0-beta.55
162
+ - @ai-sdk/openai-compatible@2.0.0-beta.56
163
+
164
+ ## 2.0.0-beta.55
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [9061dc0]
169
+ - @ai-sdk/openai-compatible@2.0.0-beta.55
170
+ - @ai-sdk/provider-utils@4.0.0-beta.54
171
+ - @ai-sdk/provider@3.0.0-beta.28
172
+
173
+ ## 2.0.0-beta.54
174
+
175
+ ### Patch Changes
176
+
177
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
178
+ - Updated dependencies [366f50b]
179
+ - @ai-sdk/openai-compatible@2.0.0-beta.54
180
+ - @ai-sdk/provider@3.0.0-beta.27
181
+ - @ai-sdk/provider-utils@4.0.0-beta.53
182
+
183
+ ## 2.0.0-beta.53
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [763d04a]
188
+ - @ai-sdk/provider-utils@4.0.0-beta.52
189
+ - @ai-sdk/openai-compatible@2.0.0-beta.53
190
+
191
+ ## 2.0.0-beta.52
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [c1efac4]
196
+ - @ai-sdk/provider-utils@4.0.0-beta.51
197
+ - @ai-sdk/openai-compatible@2.0.0-beta.52
198
+
199
+ ## 2.0.0-beta.51
200
+
201
+ ### Patch Changes
202
+
203
+ - Updated dependencies [32223c8]
204
+ - @ai-sdk/provider-utils@4.0.0-beta.50
205
+ - @ai-sdk/openai-compatible@2.0.0-beta.51
206
+
207
+ ## 2.0.0-beta.50
208
+
209
+ ### Patch Changes
210
+
211
+ - Updated dependencies [83e5744]
212
+ - @ai-sdk/provider-utils@4.0.0-beta.49
213
+ - @ai-sdk/openai-compatible@2.0.0-beta.50
214
+
215
+ ## 2.0.0-beta.49
216
+
217
+ ### Patch Changes
218
+
219
+ - Updated dependencies [960ec8f]
220
+ - @ai-sdk/provider-utils@4.0.0-beta.48
221
+ - @ai-sdk/openai-compatible@2.0.0-beta.49
222
+
223
+ ## 2.0.0-beta.48
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [e9e157f]
228
+ - @ai-sdk/provider-utils@4.0.0-beta.47
229
+ - @ai-sdk/openai-compatible@2.0.0-beta.48
230
+
231
+ ## 2.0.0-beta.47
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [81e29ab]
236
+ - @ai-sdk/provider-utils@4.0.0-beta.46
237
+ - @ai-sdk/openai-compatible@2.0.0-beta.47
238
+
239
+ ## 2.0.0-beta.46
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies [3bd2689]
244
+ - @ai-sdk/openai-compatible@2.0.0-beta.46
245
+ - @ai-sdk/provider@3.0.0-beta.26
246
+ - @ai-sdk/provider-utils@4.0.0-beta.45
247
+
248
+ ## 2.0.0-beta.45
249
+
250
+ ### Patch Changes
251
+
252
+ - Updated dependencies [53f3368]
253
+ - @ai-sdk/provider@3.0.0-beta.25
254
+ - @ai-sdk/openai-compatible@2.0.0-beta.45
255
+ - @ai-sdk/provider-utils@4.0.0-beta.44
256
+
257
+ ## 2.0.0-beta.44
258
+
259
+ ### Patch Changes
260
+
261
+ - Updated dependencies [dce03c4]
262
+ - @ai-sdk/provider-utils@4.0.0-beta.43
263
+ - @ai-sdk/provider@3.0.0-beta.24
264
+ - @ai-sdk/openai-compatible@2.0.0-beta.44
265
+
266
+ ## 2.0.0-beta.43
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [3ed5519]
271
+ - @ai-sdk/provider-utils@4.0.0-beta.42
272
+ - @ai-sdk/openai-compatible@2.0.0-beta.43
273
+
274
+ ## 2.0.0-beta.42
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [1bd7d32]
279
+ - @ai-sdk/openai-compatible@2.0.0-beta.42
280
+ - @ai-sdk/provider-utils@4.0.0-beta.41
281
+ - @ai-sdk/provider@3.0.0-beta.23
282
+
283
+ ## 2.0.0-beta.41
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [544d4e8]
288
+ - @ai-sdk/openai-compatible@2.0.0-beta.41
289
+ - @ai-sdk/provider-utils@4.0.0-beta.40
290
+ - @ai-sdk/provider@3.0.0-beta.22
291
+
292
+ ## 2.0.0-beta.40
293
+
294
+ ### Patch Changes
295
+
296
+ - Updated dependencies [954c356]
297
+ - @ai-sdk/provider-utils@4.0.0-beta.39
298
+ - @ai-sdk/provider@3.0.0-beta.21
299
+ - @ai-sdk/openai-compatible@2.0.0-beta.40
300
+
301
+ ## 2.0.0-beta.39
302
+
303
+ ### Patch Changes
304
+
305
+ - Updated dependencies [03849b0]
306
+ - @ai-sdk/provider-utils@4.0.0-beta.38
307
+ - @ai-sdk/openai-compatible@2.0.0-beta.39
308
+
309
+ ## 2.0.0-beta.38
310
+
311
+ ### Patch Changes
312
+
313
+ - Updated dependencies [457318b]
314
+ - @ai-sdk/openai-compatible@2.0.0-beta.38
315
+ - @ai-sdk/provider@3.0.0-beta.20
316
+ - @ai-sdk/provider-utils@4.0.0-beta.37
317
+
318
+ ## 2.0.0-beta.37
319
+
320
+ ### Patch Changes
321
+
322
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
323
+
324
+ Before
325
+
326
+ ```ts
327
+ model.textEmbeddingModel('my-model-id');
328
+ ```
329
+
330
+ After
331
+
332
+ ```ts
333
+ model.embeddingModel('my-model-id');
334
+ ```
335
+
336
+ - Updated dependencies [8d9e8ad]
337
+ - @ai-sdk/openai-compatible@2.0.0-beta.37
338
+ - @ai-sdk/provider@3.0.0-beta.19
339
+ - @ai-sdk/provider-utils@4.0.0-beta.36
340
+
341
+ ## 2.0.0-beta.36
342
+
343
+ ### Patch Changes
344
+
345
+ - Updated dependencies [10d819b]
346
+ - @ai-sdk/provider@3.0.0-beta.18
347
+ - @ai-sdk/openai-compatible@2.0.0-beta.36
348
+ - @ai-sdk/provider-utils@4.0.0-beta.35
349
+
350
+ ## 2.0.0-beta.35
351
+
352
+ ### Patch Changes
353
+
354
+ - Updated dependencies [db913bd]
355
+ - @ai-sdk/provider@3.0.0-beta.17
356
+ - @ai-sdk/openai-compatible@2.0.0-beta.35
357
+ - @ai-sdk/provider-utils@4.0.0-beta.34
358
+
359
+ ## 2.0.0-beta.34
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies [b681d7d]
364
+ - @ai-sdk/provider@3.0.0-beta.16
365
+ - @ai-sdk/openai-compatible@2.0.0-beta.34
366
+ - @ai-sdk/provider-utils@4.0.0-beta.33
367
+
368
+ ## 2.0.0-beta.33
369
+
370
+ ### Patch Changes
371
+
372
+ - Updated dependencies [32d8dbb]
373
+ - @ai-sdk/provider-utils@4.0.0-beta.32
374
+ - @ai-sdk/openai-compatible@2.0.0-beta.33
375
+
376
+ ## 2.0.0-beta.32
377
+
378
+ ### Patch Changes
379
+
380
+ - Updated dependencies [bb36798]
381
+ - @ai-sdk/provider@3.0.0-beta.15
382
+ - @ai-sdk/openai-compatible@2.0.0-beta.32
383
+ - @ai-sdk/provider-utils@4.0.0-beta.31
384
+
385
+ ## 2.0.0-beta.31
386
+
387
+ ### Patch Changes
388
+
389
+ - Updated dependencies [4f16c37]
390
+ - @ai-sdk/provider-utils@4.0.0-beta.30
391
+ - @ai-sdk/openai-compatible@2.0.0-beta.31
392
+
393
+ ## 2.0.0-beta.30
394
+
395
+ ### Patch Changes
396
+
397
+ - Updated dependencies [af3780b]
398
+ - @ai-sdk/provider@3.0.0-beta.14
399
+ - @ai-sdk/openai-compatible@2.0.0-beta.30
400
+ - @ai-sdk/provider-utils@4.0.0-beta.29
401
+
402
+ ## 2.0.0-beta.29
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies [016b111]
407
+ - @ai-sdk/provider-utils@4.0.0-beta.28
408
+ - @ai-sdk/openai-compatible@2.0.0-beta.29
409
+
410
+ ## 2.0.0-beta.28
411
+
412
+ ### Patch Changes
413
+
414
+ - Updated dependencies [37c58a0]
415
+ - @ai-sdk/provider@3.0.0-beta.13
416
+ - @ai-sdk/openai-compatible@2.0.0-beta.28
417
+ - @ai-sdk/provider-utils@4.0.0-beta.27
418
+
419
+ ## 2.0.0-beta.27
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies [d1bdadb]
424
+ - @ai-sdk/provider@3.0.0-beta.12
425
+ - @ai-sdk/openai-compatible@2.0.0-beta.27
426
+ - @ai-sdk/provider-utils@4.0.0-beta.26
427
+
428
+ ## 2.0.0-beta.26
429
+
430
+ ### Patch Changes
431
+
432
+ - Updated dependencies [4c44a5b]
433
+ - @ai-sdk/provider@3.0.0-beta.11
434
+ - @ai-sdk/openai-compatible@2.0.0-beta.26
435
+ - @ai-sdk/provider-utils@4.0.0-beta.25
436
+
437
+ ## 2.0.0-beta.25
438
+
439
+ ### Patch Changes
440
+
441
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
442
+ - Updated dependencies [0c3b58b]
443
+ - @ai-sdk/openai-compatible@2.0.0-beta.25
444
+ - @ai-sdk/provider@3.0.0-beta.10
445
+ - @ai-sdk/provider-utils@4.0.0-beta.24
446
+
447
+ ## 2.0.0-beta.24
448
+
449
+ ### Patch Changes
450
+
451
+ - Updated dependencies [a755db5]
452
+ - @ai-sdk/provider@3.0.0-beta.9
453
+ - @ai-sdk/openai-compatible@2.0.0-beta.24
454
+ - @ai-sdk/provider-utils@4.0.0-beta.23
455
+
456
+ ## 2.0.0-beta.23
457
+
458
+ ### Patch Changes
459
+
460
+ - Updated dependencies [58920e0]
461
+ - @ai-sdk/provider-utils@4.0.0-beta.22
462
+ - @ai-sdk/openai-compatible@2.0.0-beta.23
463
+
464
+ ## 2.0.0-beta.22
465
+
466
+ ### Patch Changes
467
+
468
+ - Updated dependencies [293a6b7]
469
+ - @ai-sdk/provider-utils@4.0.0-beta.21
470
+ - @ai-sdk/openai-compatible@2.0.0-beta.22
471
+
472
+ ## 2.0.0-beta.21
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies [fca786b]
477
+ - @ai-sdk/provider-utils@4.0.0-beta.20
478
+ - @ai-sdk/openai-compatible@2.0.0-beta.21
479
+
480
+ ## 2.0.0-beta.20
481
+
482
+ ### Patch Changes
483
+
484
+ - Updated dependencies [3794514]
485
+ - @ai-sdk/provider-utils@4.0.0-beta.19
486
+ - @ai-sdk/provider@3.0.0-beta.8
487
+ - @ai-sdk/openai-compatible@2.0.0-beta.20
488
+
489
+ ## 2.0.0-beta.19
490
+
491
+ ### Patch Changes
492
+
493
+ - Updated dependencies [81d4308]
494
+ - @ai-sdk/provider@3.0.0-beta.7
495
+ - @ai-sdk/openai-compatible@2.0.0-beta.19
496
+ - @ai-sdk/provider-utils@4.0.0-beta.18
497
+
498
+ ## 2.0.0-beta.18
499
+
500
+ ### Patch Changes
501
+
502
+ - Updated dependencies [703459a]
503
+ - @ai-sdk/provider-utils@4.0.0-beta.17
504
+ - @ai-sdk/openai-compatible@2.0.0-beta.18
505
+
506
+ ## 2.0.0-beta.17
507
+
508
+ ### Patch Changes
509
+
510
+ - Updated dependencies [b689220]
511
+ - @ai-sdk/openai-compatible@2.0.0-beta.17
512
+
513
+ ## 2.0.0-beta.16
514
+
515
+ ### Patch Changes
516
+
517
+ - Updated dependencies [6306603]
518
+ - @ai-sdk/provider-utils@4.0.0-beta.16
519
+ - @ai-sdk/openai-compatible@2.0.0-beta.16
520
+
521
+ ## 2.0.0-beta.15
522
+
523
+ ### Patch Changes
524
+
525
+ - Updated dependencies [f0b2157]
526
+ - @ai-sdk/provider-utils@4.0.0-beta.15
527
+ - @ai-sdk/openai-compatible@2.0.0-beta.15
528
+
529
+ ## 2.0.0-beta.14
530
+
531
+ ### Patch Changes
532
+
533
+ - Updated dependencies [3b1d015]
534
+ - @ai-sdk/provider-utils@4.0.0-beta.14
535
+ - @ai-sdk/openai-compatible@2.0.0-beta.14
536
+
537
+ ## 2.0.0-beta.13
538
+
539
+ ### Patch Changes
540
+
541
+ - Updated dependencies [d116b4b]
542
+ - @ai-sdk/provider-utils@4.0.0-beta.13
543
+ - @ai-sdk/openai-compatible@2.0.0-beta.13
544
+
545
+ ## 2.0.0-beta.12
546
+
547
+ ### Patch Changes
548
+
549
+ - Updated dependencies [7e32fea]
550
+ - @ai-sdk/provider-utils@4.0.0-beta.12
551
+ - @ai-sdk/openai-compatible@2.0.0-beta.12
552
+
553
+ ## 2.0.0-beta.11
554
+
555
+ ### Patch Changes
556
+
557
+ - Updated dependencies
558
+ - @ai-sdk/openai-compatible@2.0.0-beta.11
559
+ - @ai-sdk/provider-utils@4.0.0-beta.11
560
+
561
+ ## 2.0.0-beta.10
562
+
563
+ ### Major Changes
564
+
565
+ - dee8b05: ai SDK 6 beta
566
+
567
+ ### Patch Changes
568
+
569
+ - Updated dependencies [dee8b05]
570
+ - @ai-sdk/openai-compatible@2.0.0-beta.10
571
+ - @ai-sdk/provider@3.0.0-beta.6
572
+ - @ai-sdk/provider-utils@4.0.0-beta.10
573
+
574
+ ## 1.1.0-beta.9
575
+
576
+ ### Patch Changes
577
+
578
+ - Updated dependencies [521c537]
579
+ - @ai-sdk/provider-utils@3.1.0-beta.9
580
+ - @ai-sdk/openai-compatible@1.1.0-beta.9
581
+
582
+ ## 1.1.0-beta.8
583
+
584
+ ### Patch Changes
585
+
586
+ - Updated dependencies [e06565c]
587
+ - @ai-sdk/provider-utils@3.1.0-beta.8
588
+ - @ai-sdk/openai-compatible@1.1.0-beta.8
589
+
590
+ ## 1.1.0-beta.7
591
+
592
+ ### Patch Changes
593
+
594
+ - Updated dependencies
595
+ - @ai-sdk/provider@2.1.0-beta.5
596
+ - @ai-sdk/openai-compatible@1.1.0-beta.7
597
+ - @ai-sdk/provider-utils@3.1.0-beta.7
598
+
599
+ ## 1.1.0-beta.6
600
+
601
+ ### Patch Changes
602
+
603
+ - Updated dependencies
604
+ - @ai-sdk/openai-compatible@1.1.0-beta.6
605
+ - @ai-sdk/provider-utils@3.1.0-beta.6
606
+ - @ai-sdk/provider@2.1.0-beta.4
607
+
608
+ ## 1.1.0-beta.5
609
+
610
+ ### Patch Changes
611
+
612
+ - 8dac895: feat: `LanguageModelV3`
613
+ - Updated dependencies
614
+ - @ai-sdk/openai-compatible@1.1.0-beta.5
615
+ - @ai-sdk/provider-utils@3.1.0-beta.5
616
+ - @ai-sdk/provider@2.1.0-beta.3
617
+
618
+ ## 1.1.0-beta.4
619
+
620
+ ### Patch Changes
621
+
622
+ - 4616b86: chore: update zod peer depenedency version
623
+ - Updated dependencies [4616b86]
624
+ - @ai-sdk/openai-compatible@1.1.0-beta.4
625
+ - @ai-sdk/provider-utils@3.1.0-beta.4
626
+
627
+ ## 1.1.0-beta.3
628
+
629
+ ### Patch Changes
630
+
631
+ - ed329cb: feat: `Provider-V3`
632
+ - Updated dependencies
633
+ - @ai-sdk/openai-compatible@1.1.0-beta.3
634
+ - @ai-sdk/provider@2.1.0-beta.2
635
+ - @ai-sdk/provider-utils@3.1.0-beta.3
636
+
637
+ ## 1.1.0-beta.2
638
+
639
+ ### Patch Changes
640
+
641
+ - 1cad0ab: feat: add provider version to user-agent header
642
+ - Updated dependencies [0c4822d]
643
+ - @ai-sdk/openai-compatible@1.1.0-beta.2
644
+ - @ai-sdk/provider@2.1.0-beta.1
645
+ - @ai-sdk/provider-utils@3.1.0-beta.2
646
+
647
+ ## 1.1.0-beta.1
648
+
649
+ ### Patch Changes
650
+
651
+ - Updated dependencies [cbb1d35]
652
+ - @ai-sdk/provider-utils@3.1.0-beta.1
653
+ - @ai-sdk/openai-compatible@1.1.0-beta.1
654
+
655
+ ## 1.1.0-beta.0
656
+
657
+ ### Minor Changes
658
+
659
+ - 78928cb: release: start 5.1 beta
660
+
661
+ ### Patch Changes
662
+
663
+ - Updated dependencies [78928cb]
664
+ - @ai-sdk/openai-compatible@1.1.0-beta.0
665
+ - @ai-sdk/provider@2.1.0-beta.0
666
+ - @ai-sdk/provider-utils@3.1.0-beta.0
667
+
668
+ ## 1.0.18
669
+
670
+ ### Patch Changes
671
+
672
+ - Updated dependencies [28363da]
673
+ - @ai-sdk/openai-compatible@1.0.18
674
+
675
+ ## 1.0.17
676
+
677
+ ### Patch Changes
678
+
679
+ - Updated dependencies [3aed04c]
680
+ - @ai-sdk/openai-compatible@1.0.17
681
+
682
+ ## 1.0.16
683
+
684
+ ### Patch Changes
685
+
686
+ - Updated dependencies [0294b58]
687
+ - @ai-sdk/provider-utils@3.0.9
688
+ - @ai-sdk/openai-compatible@1.0.16
689
+
690
+ ## 1.0.15
691
+
692
+ ### Patch Changes
693
+
694
+ - Updated dependencies [99964ed]
695
+ - @ai-sdk/provider-utils@3.0.8
696
+ - @ai-sdk/openai-compatible@1.0.15
697
+
698
+ ## 1.0.14
699
+
700
+ ### Patch Changes
701
+
702
+ - Updated dependencies [818f021]
703
+ - @ai-sdk/openai-compatible@1.0.14
704
+
705
+ ## 1.0.13
706
+
707
+ ### Patch Changes
708
+
709
+ - Updated dependencies [886e7cd]
710
+ - @ai-sdk/provider-utils@3.0.7
711
+ - @ai-sdk/openai-compatible@1.0.13
712
+
713
+ ## 1.0.12
714
+
715
+ ### Patch Changes
716
+
717
+ - Updated dependencies [1b5a3d3]
718
+ - @ai-sdk/provider-utils@3.0.6
719
+ - @ai-sdk/openai-compatible@1.0.12
720
+
721
+ ## 1.0.11
722
+
723
+ ### Patch Changes
724
+
725
+ - Updated dependencies [0857788]
726
+ - @ai-sdk/provider-utils@3.0.5
727
+ - @ai-sdk/openai-compatible@1.0.11
728
+
729
+ ## 1.0.10
730
+
731
+ ### Patch Changes
732
+
733
+ - Updated dependencies [7ca3aee]
734
+ - @ai-sdk/openai-compatible@1.0.10
735
+
736
+ ## 1.0.9
737
+
738
+ ### Patch Changes
739
+
740
+ - Updated dependencies [68751f9]
741
+ - @ai-sdk/provider-utils@3.0.4
742
+ - @ai-sdk/openai-compatible@1.0.9
743
+
744
+ ## 1.0.8
745
+
746
+ ### Patch Changes
747
+
748
+ - Updated dependencies [515c891]
749
+ - @ai-sdk/openai-compatible@1.0.8
750
+
751
+ ## 1.0.7
752
+
753
+ ### Patch Changes
754
+
755
+ - Updated dependencies
756
+ - @ai-sdk/provider-utils@3.0.3
757
+ - @ai-sdk/openai-compatible@1.0.7
758
+
759
+ ## 1.0.6
760
+
761
+ ### Patch Changes
762
+
763
+ - Updated dependencies [38ac190]
764
+ - @ai-sdk/provider-utils@3.0.2
765
+ - @ai-sdk/openai-compatible@1.0.6
766
+
767
+ ## 1.0.5
768
+
769
+ ### Patch Changes
770
+
771
+ - Updated dependencies
772
+ - @ai-sdk/openai-compatible@1.0.5
773
+
774
+ ## 1.0.4
775
+
776
+ ### Patch Changes
777
+
778
+ - Updated dependencies
779
+ - @ai-sdk/openai-compatible@1.0.4
780
+
781
+ ## 1.0.3
782
+
783
+ ### Patch Changes
784
+
785
+ - Updated dependencies [a0934f8]
786
+ - @ai-sdk/openai-compatible@1.0.3
787
+
788
+ ## 1.0.2
789
+
790
+ ### Patch Changes
791
+
792
+ - Updated dependencies
793
+ - @ai-sdk/openai-compatible@1.0.2
794
+ - @ai-sdk/provider-utils@3.0.1
795
+
796
+ ## 1.0.1
797
+
798
+ ### Patch Changes
799
+
800
+ - Updated dependencies [0e8ed8e]
801
+ - @ai-sdk/openai-compatible@1.0.1
802
+
803
+ ## 1.0.0
804
+
805
+ ### Patch Changes
806
+
807
+ - 6f87d1d: feat (provider/vercel): update chat model ids and examples
808
+ - e2aceaf: feat: add raw chunk support
809
+ - 9eb5417: feat (providers/vercel): initial vercel provider
810
+ - 205077b: fix: improve Zod compatibility
811
+ - Updated dependencies
812
+ - @ai-sdk/provider-utils@3.0.0
813
+ - @ai-sdk/provider@2.0.0
814
+ - @ai-sdk/openai-compatible@1.0.0
815
+
816
+ ## 1.0.0-beta.14
817
+
818
+ ### Patch Changes
819
+
820
+ - Updated dependencies [88a8ee5]
821
+ - @ai-sdk/provider-utils@3.0.0-beta.10
822
+ - @ai-sdk/openai-compatible@1.0.0-beta.13
823
+
824
+ ## 1.0.0-beta.13
825
+
826
+ ### Patch Changes
827
+
828
+ - Updated dependencies [27deb4d]
829
+ - @ai-sdk/provider@2.0.0-beta.2
830
+ - @ai-sdk/openai-compatible@1.0.0-beta.12
831
+ - @ai-sdk/provider-utils@3.0.0-beta.9
832
+
833
+ ## 1.0.0-beta.12
834
+
835
+ ### Patch Changes
836
+
837
+ - Updated dependencies [dd5fd43]
838
+ - @ai-sdk/provider-utils@3.0.0-beta.8
839
+ - @ai-sdk/openai-compatible@1.0.0-beta.11
840
+
841
+ ## 1.0.0-beta.11
842
+
843
+ ### Patch Changes
844
+
845
+ - Updated dependencies [e7fcc86]
846
+ - @ai-sdk/provider-utils@3.0.0-beta.7
847
+ - @ai-sdk/openai-compatible@1.0.0-beta.10
848
+
849
+ ## 1.0.0-beta.10
850
+
851
+ ### Patch Changes
852
+
853
+ - Updated dependencies
854
+ - @ai-sdk/openai-compatible@1.0.0-beta.9
855
+ - @ai-sdk/provider-utils@3.0.0-beta.6
856
+
857
+ ## 1.0.0-beta.9
858
+
859
+ ### Patch Changes
860
+
861
+ - 6f87d1d: feat (provider/vercel): update chat model ids and examples
862
+
863
+ ## 1.0.0-beta.8
864
+
865
+ ### Patch Changes
866
+
867
+ - Updated dependencies
868
+ - @ai-sdk/provider-utils@3.0.0-beta.5
869
+ - @ai-sdk/openai-compatible@1.0.0-beta.8
870
+
871
+ ## 1.0.0-beta.7
872
+
873
+ ### Patch Changes
874
+
875
+ - 205077b: fix: improve Zod compatibility
876
+ - Updated dependencies [205077b]
877
+ - @ai-sdk/openai-compatible@1.0.0-beta.7
878
+ - @ai-sdk/provider-utils@3.0.0-beta.4
879
+
880
+ ## 1.0.0-beta.6
881
+
882
+ ### Patch Changes
883
+
884
+ - Updated dependencies [281bb1c]
885
+ - @ai-sdk/openai-compatible@1.0.0-beta.6
886
+
887
+ ## 1.0.0-beta.5
888
+
889
+ ### Patch Changes
890
+
891
+ - Updated dependencies [05d2819]
892
+ - @ai-sdk/provider-utils@3.0.0-beta.3
893
+ - @ai-sdk/openai-compatible@1.0.0-beta.5
894
+
895
+ ## 1.0.0-beta.4
896
+
897
+ ### Patch Changes
898
+
899
+ - Updated dependencies [1b101e1]
900
+ - @ai-sdk/openai-compatible@1.0.0-beta.4
901
+
902
+ ## 1.0.0-beta.3
903
+
904
+ ### Patch Changes
905
+
906
+ - Updated dependencies [7b069ed]
907
+ - @ai-sdk/openai-compatible@1.0.0-beta.3
908
+
909
+ ## 1.0.0-beta.2
910
+
911
+ ### Patch Changes
912
+
913
+ - Updated dependencies
914
+ - @ai-sdk/provider-utils@3.0.0-beta.2
915
+ - @ai-sdk/openai-compatible@1.0.0-beta.2
916
+
917
+ ## 1.0.0-beta.1
918
+
919
+ ### Patch Changes
920
+
921
+ - Updated dependencies
922
+ - @ai-sdk/provider@2.0.0-beta.1
923
+ - @ai-sdk/provider-utils@3.0.0-beta.1
924
+ - @ai-sdk/openai-compatible@1.0.0-beta.1
925
+
926
+ ## 1.0.0-alpha.15
927
+
928
+ ### Patch Changes
929
+
930
+ - Updated dependencies
931
+ - @ai-sdk/provider@2.0.0-alpha.15
932
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
933
+ - @ai-sdk/openai-compatible@1.0.0-alpha.15
934
+
935
+ ## 1.0.0-alpha.14
936
+
937
+ ### Patch Changes
938
+
939
+ - Updated dependencies
940
+ - @ai-sdk/provider@2.0.0-alpha.14
941
+ - @ai-sdk/openai-compatible@1.0.0-alpha.14
942
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
943
+
944
+ ## 1.0.0-alpha.13
945
+
946
+ ### Patch Changes
947
+
948
+ - Updated dependencies [68ecf2f]
949
+ - @ai-sdk/provider@2.0.0-alpha.13
950
+ - @ai-sdk/openai-compatible@1.0.0-alpha.13
951
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
952
+
953
+ ## 1.0.0-alpha.12
954
+
955
+ ### Patch Changes
956
+
957
+ - e2aceaf: feat: add raw chunk support
958
+ - Updated dependencies [e2aceaf]
959
+ - @ai-sdk/openai-compatible@1.0.0-alpha.12
960
+ - @ai-sdk/provider@2.0.0-alpha.12
961
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
962
+
963
+ ## 1.0.0-alpha.11
964
+
965
+ ### Patch Changes
966
+
967
+ - Updated dependencies [c1e6647]
968
+ - @ai-sdk/provider@2.0.0-alpha.11
969
+ - @ai-sdk/openai-compatible@1.0.0-alpha.11
970
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
971
+
972
+ ## 1.0.0-alpha.10
973
+
974
+ ### Patch Changes
975
+
976
+ - Updated dependencies [c4df419]
977
+ - @ai-sdk/provider@2.0.0-alpha.10
978
+ - @ai-sdk/openai-compatible@1.0.0-alpha.10
979
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
980
+
981
+ ## 1.0.0-alpha.9
982
+
983
+ ### Patch Changes
984
+
985
+ - Updated dependencies [811dff3]
986
+ - @ai-sdk/provider@2.0.0-alpha.9
987
+ - @ai-sdk/openai-compatible@1.0.0-alpha.9
988
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
989
+
990
+ ## 1.0.0-alpha.8
991
+
992
+ ### Patch Changes
993
+
994
+ - Updated dependencies
995
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
996
+ - @ai-sdk/provider@2.0.0-alpha.8
997
+ - @ai-sdk/openai-compatible@1.0.0-alpha.8
998
+
999
+ ## 1.0.0-alpha.7
1000
+
1001
+ ### Patch Changes
1002
+
1003
+ - Updated dependencies [5c56081]
1004
+ - @ai-sdk/provider@2.0.0-alpha.7
1005
+ - @ai-sdk/openai-compatible@1.0.0-alpha.7
1006
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
1007
+
1008
+ ## 1.0.0-alpha.6
1009
+
1010
+ ### Patch Changes
1011
+
1012
+ - Updated dependencies [0d2c085]
1013
+ - @ai-sdk/provider@2.0.0-alpha.6
1014
+ - @ai-sdk/openai-compatible@1.0.0-alpha.6
1015
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
1016
+
1017
+ ## 1.0.0-alpha.5
1018
+
1019
+ ### Patch Changes
1020
+
1021
+ - 9eb5417: feat (providers/vercel): initial vercel provider
1022
+
1023
+ ## 0.0.1
1024
+
1025
+ ### Patch Changes
1026
+
1027
+ - 42e37fb: feat (provider/vercel): initial vercel provider
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Vercel, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # AI SDK - Vercel Provider
2
+
3
+ The **[Vercel provider](https://ai-sdk.dev/providers/ai-sdk-providers/vercel)** for the [AI SDK](https://ai-sdk.dev/docs)
4
+ gives you access to the v0 API, designed for building modern web applications. The `v0-1.0-md` model supports text and image inputs, provides fast streaming responses, and is compatible with the OpenAI Chat Completions API format.
5
+
6
+ Key features include:
7
+
8
+ - Framework aware completions: Optimized for modern stacks like Next.js and Vercel
9
+ - Auto-fix: Identifies and corrects common coding issues during generation
10
+ - Quick edit: Streams inline edits as they're available
11
+ - Multimodal: Supports both text and image inputs
12
+
13
+ ## Setup
14
+
15
+ The Vercel provider is available in the `@ai-sdk/vercel` module. You can install it with
16
+
17
+ ```bash
18
+ npm i @ai-sdk/vercel
19
+ ```
20
+
21
+ ## Provider Instance
22
+
23
+ You can import the default provider instance `vercel` from `@ai-sdk/vercel`:
24
+
25
+ ```ts
26
+ import { vercel } from '@ai-sdk/vercel';
27
+ ```
28
+
29
+ ## Example
30
+
31
+ ```ts
32
+ import { vercel } from '@ai-sdk/vercel';
33
+ import { generateText } from 'ai';
34
+
35
+ const { text } = await generateText({
36
+ model: vercel('v0-1.0-md'),
37
+ prompt: 'Create a Next.js app',
38
+ });
39
+ ```
40
+
41
+ ## Documentation
42
+
43
+ Please check out the **[Vercel provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/vercel)** for more information.
@@ -0,0 +1,45 @@
1
+ import { ProviderV3, LanguageModelV3 } 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 ProviderV3 {
27
+ /**
28
+ Creates a model for text generation.
29
+ */
30
+ (modelId: VercelChatModelId): LanguageModelV3;
31
+ /**
32
+ Creates a language model for text generation.
33
+ */
34
+ languageModel(modelId: VercelChatModelId): LanguageModelV3;
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 };
@@ -0,0 +1,45 @@
1
+ import { ProviderV3, LanguageModelV3 } 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 ProviderV3 {
27
+ /**
28
+ Creates a model for text generation.
29
+ */
30
+ (modelId: VercelChatModelId): LanguageModelV3;
31
+ /**
32
+ Creates a language model for text generation.
33
+ */
34
+ languageModel(modelId: VercelChatModelId): LanguageModelV3;
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.js ADDED
@@ -0,0 +1,84 @@
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 src_exports = {};
22
+ __export(src_exports, {
23
+ VERSION: () => VERSION,
24
+ createVercel: () => createVercel,
25
+ vercel: () => vercel
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+
29
+ // 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");
33
+
34
+ // src/version.ts
35
+ var VERSION = true ? "0.0.0-64aae7dd-20260114144918" : "0.0.0-test";
36
+
37
+ // src/vercel-provider.ts
38
+ function createVercel(options = {}) {
39
+ var _a;
40
+ const baseURL = (0, import_provider_utils.withoutTrailingSlash)(
41
+ (_a = options.baseURL) != null ? _a : "https://api.v0.dev/v1"
42
+ );
43
+ const getHeaders = () => (0, import_provider_utils.withUserAgentSuffix)(
44
+ {
45
+ Authorization: `Bearer ${(0, import_provider_utils.loadApiKey)({
46
+ apiKey: options.apiKey,
47
+ environmentVariableName: "VERCEL_API_KEY",
48
+ description: "Vercel"
49
+ })}`,
50
+ ...options.headers
51
+ },
52
+ `ai-sdk/vercel/${VERSION}`
53
+ );
54
+ const getCommonModelConfig = (modelType) => ({
55
+ provider: `vercel.${modelType}`,
56
+ url: ({ path }) => `${baseURL}${path}`,
57
+ headers: getHeaders,
58
+ fetch: options.fetch
59
+ });
60
+ const createChatModel = (modelId) => {
61
+ return new import_openai_compatible.OpenAICompatibleChatLanguageModel(modelId, {
62
+ ...getCommonModelConfig("chat")
63
+ });
64
+ };
65
+ const provider = (modelId) => createChatModel(modelId);
66
+ provider.specificationVersion = "v3";
67
+ provider.languageModel = createChatModel;
68
+ provider.embeddingModel = (modelId) => {
69
+ throw new import_provider.NoSuchModelError({ modelId, modelType: "embeddingModel" });
70
+ };
71
+ provider.textEmbeddingModel = provider.embeddingModel;
72
+ provider.imageModel = (modelId) => {
73
+ throw new import_provider.NoSuchModelError({ modelId, modelType: "imageModel" });
74
+ };
75
+ return provider;
76
+ }
77
+ var vercel = createVercel();
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ VERSION,
81
+ createVercel,
82
+ vercel
83
+ });
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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 LanguageModelV3,\n NoSuchModelError,\n ProviderV3,\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 /**\nVercel API key.\n*/\n apiKey?: string;\n /**\nBase URL for the API calls.\n*/\n baseURL?: string;\n /**\nCustom headers to include in the requests.\n*/\n headers?: Record<string, string>;\n /**\nCustom fetch implementation. You can use it as a middleware to intercept requests,\nor to provide a custom fetch implementation for e.g. testing.\n*/\n fetch?: FetchFunction;\n}\n\nexport interface VercelProvider extends ProviderV3 {\n /**\nCreates a model for text generation.\n*/\n (modelId: VercelChatModelId): LanguageModelV3;\n\n /**\nCreates a language model for text generation.\n*/\n languageModel(modelId: VercelChatModelId): LanguageModelV3;\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 = 'v3' 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,kCACA;;;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":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,61 @@
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 ? "0.0.0-64aae7dd-20260114144918" : "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 = "v3";
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
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/vercel-provider.ts","../src/version.ts"],"sourcesContent":["import {\n LanguageModelV3,\n NoSuchModelError,\n ProviderV3,\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 /**\nVercel API key.\n*/\n apiKey?: string;\n /**\nBase URL for the API calls.\n*/\n baseURL?: string;\n /**\nCustom headers to include in the requests.\n*/\n headers?: Record<string, string>;\n /**\nCustom fetch implementation. You can use it as a middleware to intercept requests,\nor to provide a custom fetch implementation for e.g. testing.\n*/\n fetch?: FetchFunction;\n}\n\nexport interface VercelProvider extends ProviderV3 {\n /**\nCreates a model for text generation.\n*/\n (modelId: VercelChatModelId): LanguageModelV3;\n\n /**\nCreates a language model for text generation.\n*/\n languageModel(modelId: VercelChatModelId): LanguageModelV3;\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 = 'v3' 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,kCACA;;;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 ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@ai-sdk/vercel",
3
+ "version": "0.0.0-64aae7dd-20260114144918",
4
+ "license": "Apache-2.0",
5
+ "sideEffects": false,
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist/**/*",
11
+ "CHANGELOG.md",
12
+ "README.md"
13
+ ],
14
+ "exports": {
15
+ "./package.json": "./package.json",
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.mjs",
19
+ "require": "./dist/index.js"
20
+ }
21
+ },
22
+ "dependencies": {
23
+ "@ai-sdk/openai-compatible": "0.0.0-64aae7dd-20260114144918",
24
+ "@ai-sdk/provider": "0.0.0-64aae7dd-20260114144918",
25
+ "@ai-sdk/provider-utils": "0.0.0-64aae7dd-20260114144918"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "20.17.24",
29
+ "tsup": "^8",
30
+ "typescript": "5.8.3",
31
+ "zod": "3.25.76",
32
+ "@vercel/ai-tsconfig": "0.0.0"
33
+ },
34
+ "peerDependencies": {
35
+ "zod": "^3.25.76 || ^4.1.8"
36
+ },
37
+ "engines": {
38
+ "node": ">=18"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "homepage": "https://ai-sdk.dev/docs",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/vercel/ai.git"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/vercel/ai/issues"
50
+ },
51
+ "keywords": [
52
+ "ai"
53
+ ],
54
+ "scripts": {
55
+ "build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
56
+ "build:watch": "pnpm clean && tsup --watch",
57
+ "clean": "del-cli dist *.tsbuildinfo",
58
+ "lint": "eslint \"./**/*.ts*\"",
59
+ "type-check": "tsc --build",
60
+ "prettier-check": "prettier --check \"./**/*.ts*\"",
61
+ "test": "pnpm test:node && pnpm test:edge",
62
+ "test:update": "pnpm test:node -u",
63
+ "test:watch": "vitest --config vitest.node.config.js",
64
+ "test:edge": "vitest --config vitest.edge.config.js --run",
65
+ "test:node": "vitest --config vitest.node.config.js --run"
66
+ }
67
+ }