@tanstack/ai-vercel-gateway 0.3.1 → 0.3.2
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/dist/esm/model-meta.d.ts +21 -11
- package/dist/esm/model-meta.js +11 -3
- package/dist/esm/model-meta.js.map +1 -1
- package/package.json +3 -3
- package/src/model-meta.ts +95 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/ai-vercel-gateway",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Vercel AI Gateway adapter for TanStack AI chat, embeddings, and image generation.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"vite": "^8.2.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@tanstack/ai": "^0.
|
|
59
|
+
"@tanstack/ai": "^0.64.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"openai": "^6.41.0",
|
|
63
63
|
"@tanstack/ai-utils": "^0.4.1",
|
|
64
|
-
"@tanstack/openai-base": "^0.12.
|
|
64
|
+
"@tanstack/openai-base": "^0.12.2"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "vite build",
|
package/src/model-meta.ts
CHANGED
|
@@ -68,6 +68,7 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
68
68
|
'anthropic/claude-sonnet-4.5',
|
|
69
69
|
'anthropic/claude-sonnet-4.6',
|
|
70
70
|
'anthropic/claude-sonnet-5',
|
|
71
|
+
'anthropic/claude-sonnet-5.5',
|
|
71
72
|
'arcee-ai/trinity-large-thinking',
|
|
72
73
|
'bytedance/seed-1.6',
|
|
73
74
|
'bytedance/seed-1.8',
|
|
@@ -119,13 +120,16 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
119
120
|
'inception/mercury-coder-small',
|
|
120
121
|
'inclusionai/ling-3.0-flash',
|
|
121
122
|
'inclusionai/ling-3.0-flash-fin',
|
|
122
|
-
'inclusionai/ling-3.0-flash-fin-free',
|
|
123
123
|
'inclusionai/ling-3.0-flash-sante',
|
|
124
124
|
'inclusionai/ling-3.0-flash-sante-free',
|
|
125
125
|
'inclusionai/ling-3.0-flash-vl',
|
|
126
|
+
'inclusionai/ling-3.1-flash',
|
|
127
|
+
'inclusionai/ling-3.1-flash-free',
|
|
126
128
|
'inference-net/schematron-v2-small',
|
|
127
129
|
'inference-net/schematron-v2-turbo',
|
|
128
130
|
'interfaze/interfaze-beta',
|
|
131
|
+
'liquid/d1',
|
|
132
|
+
'meituan/longcat-2.5-preview',
|
|
129
133
|
'meta/llama-3.1-70b',
|
|
130
134
|
'meta/llama-3.1-8b',
|
|
131
135
|
'meta/llama-3.3-70b',
|
|
@@ -223,6 +227,8 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
223
227
|
'openai/gpt-6-luna-fast',
|
|
224
228
|
'openai/gpt-6-sol',
|
|
225
229
|
'openai/gpt-6-sol-fast',
|
|
230
|
+
'openai/gpt-6.1-sol',
|
|
231
|
+
'openai/gpt-6.1-sol-fast',
|
|
226
232
|
'openai/gpt-live-1',
|
|
227
233
|
'openai/gpt-oss-120b',
|
|
228
234
|
'openai/gpt-oss-20b',
|
|
@@ -244,8 +250,6 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
244
250
|
'openai/tts-1-hd',
|
|
245
251
|
'openai/whisper-1',
|
|
246
252
|
'perplexity/sonar',
|
|
247
|
-
'perplexity/sonar-pro',
|
|
248
|
-
'perplexity/sonar-reasoning-pro',
|
|
249
253
|
'poolside/laguna-s-2.1',
|
|
250
254
|
'poolside/laguna-s-2.1-free',
|
|
251
255
|
'quiverai/arrow-2',
|
|
@@ -271,6 +275,7 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
271
275
|
'spacexai/grok-tts',
|
|
272
276
|
'spacexai/grok-voice-think-fast-1.0',
|
|
273
277
|
'spacexai/grok-voice-think-fast-2.0',
|
|
278
|
+
'stealth/pixel-canary',
|
|
274
279
|
'stepfun/step-3.5-flash',
|
|
275
280
|
'stepfun/step-3.7-flash',
|
|
276
281
|
'stepfun/step-5-preview',
|
|
@@ -325,6 +330,8 @@ export const VERCEL_GATEWAY_PROVIDERS = [
|
|
|
325
330
|
'inference-net',
|
|
326
331
|
'interfaze',
|
|
327
332
|
'klingai',
|
|
333
|
+
'liquid',
|
|
334
|
+
'meituan',
|
|
328
335
|
'meta',
|
|
329
336
|
'minimax',
|
|
330
337
|
'mistral',
|
|
@@ -340,6 +347,7 @@ export const VERCEL_GATEWAY_PROVIDERS = [
|
|
|
340
347
|
'recraft',
|
|
341
348
|
'sakana',
|
|
342
349
|
'spacexai',
|
|
350
|
+
'stealth',
|
|
343
351
|
'stepfun',
|
|
344
352
|
'tencent',
|
|
345
353
|
'thinkingmachines',
|
|
@@ -976,6 +984,8 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
976
984
|
| 'stop'
|
|
977
985
|
| 'reasoning'
|
|
978
986
|
| 'include_reasoning'
|
|
987
|
+
| 'response_format'
|
|
988
|
+
| 'structured_outputs'
|
|
979
989
|
>
|
|
980
990
|
'anthropic/claude-opus-5.5-fast': VercelGatewayCommonOptions &
|
|
981
991
|
Pick<
|
|
@@ -985,6 +995,8 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
985
995
|
| 'stop'
|
|
986
996
|
| 'reasoning'
|
|
987
997
|
| 'include_reasoning'
|
|
998
|
+
| 'response_format'
|
|
999
|
+
| 'structured_outputs'
|
|
988
1000
|
>
|
|
989
1001
|
'anthropic/claude-sonnet-4': VercelGatewayCommonOptions &
|
|
990
1002
|
Pick<
|
|
@@ -1033,6 +1045,17 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
1033
1045
|
| 'response_format'
|
|
1034
1046
|
| 'structured_outputs'
|
|
1035
1047
|
>
|
|
1048
|
+
'anthropic/claude-sonnet-5.5': VercelGatewayCommonOptions &
|
|
1049
|
+
Pick<
|
|
1050
|
+
VercelGatewayBaseOptions,
|
|
1051
|
+
| 'max_tokens'
|
|
1052
|
+
| 'max_output_tokens'
|
|
1053
|
+
| 'stop'
|
|
1054
|
+
| 'reasoning'
|
|
1055
|
+
| 'include_reasoning'
|
|
1056
|
+
| 'response_format'
|
|
1057
|
+
| 'structured_outputs'
|
|
1058
|
+
>
|
|
1036
1059
|
'arcee-ai/trinity-large-thinking': VercelGatewayCommonOptions &
|
|
1037
1060
|
Pick<
|
|
1038
1061
|
VercelGatewayBaseOptions,
|
|
@@ -1529,7 +1552,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
1529
1552
|
| 'response_format'
|
|
1530
1553
|
| 'structured_outputs'
|
|
1531
1554
|
>
|
|
1532
|
-
'inclusionai/ling-3.0-flash-
|
|
1555
|
+
'inclusionai/ling-3.0-flash-sante': VercelGatewayCommonOptions &
|
|
1533
1556
|
Pick<
|
|
1534
1557
|
VercelGatewayBaseOptions,
|
|
1535
1558
|
| 'max_tokens'
|
|
@@ -1539,7 +1562,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
1539
1562
|
| 'reasoning'
|
|
1540
1563
|
| 'include_reasoning'
|
|
1541
1564
|
>
|
|
1542
|
-
'inclusionai/ling-3.0-flash-sante': VercelGatewayCommonOptions &
|
|
1565
|
+
'inclusionai/ling-3.0-flash-sante-free': VercelGatewayCommonOptions &
|
|
1543
1566
|
Pick<
|
|
1544
1567
|
VercelGatewayBaseOptions,
|
|
1545
1568
|
| 'max_tokens'
|
|
@@ -1549,7 +1572,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
1549
1572
|
| 'reasoning'
|
|
1550
1573
|
| 'include_reasoning'
|
|
1551
1574
|
>
|
|
1552
|
-
'inclusionai/ling-3.0-flash-
|
|
1575
|
+
'inclusionai/ling-3.0-flash-vl': VercelGatewayCommonOptions &
|
|
1553
1576
|
Pick<
|
|
1554
1577
|
VercelGatewayBaseOptions,
|
|
1555
1578
|
| 'max_tokens'
|
|
@@ -1559,7 +1582,17 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
1559
1582
|
| 'reasoning'
|
|
1560
1583
|
| 'include_reasoning'
|
|
1561
1584
|
>
|
|
1562
|
-
'inclusionai/ling-3.
|
|
1585
|
+
'inclusionai/ling-3.1-flash': VercelGatewayCommonOptions &
|
|
1586
|
+
Pick<
|
|
1587
|
+
VercelGatewayBaseOptions,
|
|
1588
|
+
| 'max_tokens'
|
|
1589
|
+
| 'max_output_tokens'
|
|
1590
|
+
| 'temperature'
|
|
1591
|
+
| 'stop'
|
|
1592
|
+
| 'reasoning'
|
|
1593
|
+
| 'include_reasoning'
|
|
1594
|
+
>
|
|
1595
|
+
'inclusionai/ling-3.1-flash-free': VercelGatewayCommonOptions &
|
|
1563
1596
|
Pick<
|
|
1564
1597
|
VercelGatewayBaseOptions,
|
|
1565
1598
|
| 'max_tokens'
|
|
@@ -1601,6 +1634,19 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
1601
1634
|
| 'response_format'
|
|
1602
1635
|
| 'structured_outputs'
|
|
1603
1636
|
>
|
|
1637
|
+
'liquid/d1': VercelGatewayCommonOptions
|
|
1638
|
+
'meituan/longcat-2.5-preview': VercelGatewayCommonOptions &
|
|
1639
|
+
Pick<
|
|
1640
|
+
VercelGatewayBaseOptions,
|
|
1641
|
+
| 'max_tokens'
|
|
1642
|
+
| 'max_output_tokens'
|
|
1643
|
+
| 'temperature'
|
|
1644
|
+
| 'stop'
|
|
1645
|
+
| 'reasoning'
|
|
1646
|
+
| 'include_reasoning'
|
|
1647
|
+
| 'response_format'
|
|
1648
|
+
| 'structured_outputs'
|
|
1649
|
+
>
|
|
1604
1650
|
'meta/llama-3.1-70b': VercelGatewayCommonOptions &
|
|
1605
1651
|
Pick<
|
|
1606
1652
|
VercelGatewayBaseOptions,
|
|
@@ -2653,6 +2699,30 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
2653
2699
|
| 'response_format'
|
|
2654
2700
|
| 'structured_outputs'
|
|
2655
2701
|
>
|
|
2702
|
+
'openai/gpt-6.1-sol': VercelGatewayCommonOptions &
|
|
2703
|
+
Pick<
|
|
2704
|
+
VercelGatewayBaseOptions,
|
|
2705
|
+
| 'max_tokens'
|
|
2706
|
+
| 'max_output_tokens'
|
|
2707
|
+
| 'temperature'
|
|
2708
|
+
| 'stop'
|
|
2709
|
+
| 'reasoning'
|
|
2710
|
+
| 'include_reasoning'
|
|
2711
|
+
| 'response_format'
|
|
2712
|
+
| 'structured_outputs'
|
|
2713
|
+
>
|
|
2714
|
+
'openai/gpt-6.1-sol-fast': VercelGatewayCommonOptions &
|
|
2715
|
+
Pick<
|
|
2716
|
+
VercelGatewayBaseOptions,
|
|
2717
|
+
| 'max_tokens'
|
|
2718
|
+
| 'max_output_tokens'
|
|
2719
|
+
| 'temperature'
|
|
2720
|
+
| 'stop'
|
|
2721
|
+
| 'reasoning'
|
|
2722
|
+
| 'include_reasoning'
|
|
2723
|
+
| 'response_format'
|
|
2724
|
+
| 'structured_outputs'
|
|
2725
|
+
>
|
|
2656
2726
|
'openai/gpt-live-1': VercelGatewayCommonOptions &
|
|
2657
2727
|
Pick<
|
|
2658
2728
|
VercelGatewayBaseOptions,
|
|
@@ -2819,26 +2889,6 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
2819
2889
|
'openai/tts-1-hd': VercelGatewayCommonOptions
|
|
2820
2890
|
'openai/whisper-1': VercelGatewayCommonOptions
|
|
2821
2891
|
'perplexity/sonar': VercelGatewayCommonOptions &
|
|
2822
|
-
Pick<
|
|
2823
|
-
VercelGatewayBaseOptions,
|
|
2824
|
-
| 'max_tokens'
|
|
2825
|
-
| 'max_output_tokens'
|
|
2826
|
-
| 'temperature'
|
|
2827
|
-
| 'stop'
|
|
2828
|
-
| 'response_format'
|
|
2829
|
-
| 'structured_outputs'
|
|
2830
|
-
>
|
|
2831
|
-
'perplexity/sonar-pro': VercelGatewayCommonOptions &
|
|
2832
|
-
Pick<
|
|
2833
|
-
VercelGatewayBaseOptions,
|
|
2834
|
-
| 'max_tokens'
|
|
2835
|
-
| 'max_output_tokens'
|
|
2836
|
-
| 'temperature'
|
|
2837
|
-
| 'stop'
|
|
2838
|
-
| 'response_format'
|
|
2839
|
-
| 'structured_outputs'
|
|
2840
|
-
>
|
|
2841
|
-
'perplexity/sonar-reasoning-pro': VercelGatewayCommonOptions &
|
|
2842
2892
|
Pick<
|
|
2843
2893
|
VercelGatewayBaseOptions,
|
|
2844
2894
|
| 'max_tokens'
|
|
@@ -3116,6 +3166,16 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
3116
3166
|
| 'reasoning'
|
|
3117
3167
|
| 'include_reasoning'
|
|
3118
3168
|
>
|
|
3169
|
+
'stealth/pixel-canary': VercelGatewayCommonOptions &
|
|
3170
|
+
Pick<
|
|
3171
|
+
VercelGatewayBaseOptions,
|
|
3172
|
+
| 'max_tokens'
|
|
3173
|
+
| 'max_output_tokens'
|
|
3174
|
+
| 'temperature'
|
|
3175
|
+
| 'stop'
|
|
3176
|
+
| 'reasoning'
|
|
3177
|
+
| 'include_reasoning'
|
|
3178
|
+
>
|
|
3119
3179
|
'stepfun/step-3.5-flash': VercelGatewayCommonOptions &
|
|
3120
3180
|
Pick<
|
|
3121
3181
|
VercelGatewayBaseOptions,
|
|
@@ -3539,6 +3599,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
3539
3599
|
'anthropic/claude-sonnet-4.5': readonly ['text', 'image', 'document']
|
|
3540
3600
|
'anthropic/claude-sonnet-4.6': readonly ['text', 'image', 'document']
|
|
3541
3601
|
'anthropic/claude-sonnet-5': readonly ['text', 'image', 'document']
|
|
3602
|
+
'anthropic/claude-sonnet-5.5': readonly ['text', 'image', 'document']
|
|
3542
3603
|
'arcee-ai/trinity-large-thinking': readonly ['text']
|
|
3543
3604
|
'bytedance/seed-1.6': readonly ['text', 'image']
|
|
3544
3605
|
'bytedance/seed-1.8': readonly ['text', 'image']
|
|
@@ -3600,13 +3661,16 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
3600
3661
|
'inception/mercury-coder-small': readonly ['text']
|
|
3601
3662
|
'inclusionai/ling-3.0-flash': readonly ['text']
|
|
3602
3663
|
'inclusionai/ling-3.0-flash-fin': readonly ['text']
|
|
3603
|
-
'inclusionai/ling-3.0-flash-fin-free': readonly ['text']
|
|
3604
3664
|
'inclusionai/ling-3.0-flash-sante': readonly ['text']
|
|
3605
3665
|
'inclusionai/ling-3.0-flash-sante-free': readonly ['text']
|
|
3606
3666
|
'inclusionai/ling-3.0-flash-vl': readonly ['text', 'image', 'video']
|
|
3667
|
+
'inclusionai/ling-3.1-flash': readonly ['text']
|
|
3668
|
+
'inclusionai/ling-3.1-flash-free': readonly ['text']
|
|
3607
3669
|
'inference-net/schematron-v2-small': readonly ['text']
|
|
3608
3670
|
'inference-net/schematron-v2-turbo': readonly ['text']
|
|
3609
3671
|
'interfaze/interfaze-beta': readonly ['text', 'image', 'document']
|
|
3672
|
+
'liquid/d1': readonly ['text']
|
|
3673
|
+
'meituan/longcat-2.5-preview': readonly ['text', 'image']
|
|
3610
3674
|
'meta/llama-3.1-70b': readonly ['text']
|
|
3611
3675
|
'meta/llama-3.1-8b': readonly ['text']
|
|
3612
3676
|
'meta/llama-3.3-70b': readonly ['text']
|
|
@@ -3709,6 +3773,8 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
3709
3773
|
'openai/gpt-6-luna-fast': readonly ['text', 'image', 'document']
|
|
3710
3774
|
'openai/gpt-6-sol': readonly ['text', 'image', 'document']
|
|
3711
3775
|
'openai/gpt-6-sol-fast': readonly ['text', 'image', 'document']
|
|
3776
|
+
'openai/gpt-6.1-sol': readonly ['text', 'image', 'document']
|
|
3777
|
+
'openai/gpt-6.1-sol-fast': readonly ['text', 'image', 'document']
|
|
3712
3778
|
'openai/gpt-live-1': readonly ['text', 'audio']
|
|
3713
3779
|
'openai/gpt-oss-120b': readonly ['text']
|
|
3714
3780
|
'openai/gpt-oss-20b': readonly ['text']
|
|
@@ -3730,8 +3796,6 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
3730
3796
|
'openai/tts-1-hd': readonly ['text']
|
|
3731
3797
|
'openai/whisper-1': readonly ['text', 'audio']
|
|
3732
3798
|
'perplexity/sonar': readonly ['text', 'image']
|
|
3733
|
-
'perplexity/sonar-pro': readonly ['text', 'image']
|
|
3734
|
-
'perplexity/sonar-reasoning-pro': readonly ['text', 'image']
|
|
3735
3799
|
'poolside/laguna-s-2.1': readonly ['text']
|
|
3736
3800
|
'poolside/laguna-s-2.1-free': readonly ['text']
|
|
3737
3801
|
'quiverai/arrow-2': readonly ['text', 'image']
|
|
@@ -3761,6 +3825,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
3761
3825
|
'spacexai/grok-tts': readonly ['text']
|
|
3762
3826
|
'spacexai/grok-voice-think-fast-1.0': readonly ['text', 'audio']
|
|
3763
3827
|
'spacexai/grok-voice-think-fast-2.0': readonly ['text', 'audio']
|
|
3828
|
+
'stealth/pixel-canary': readonly ['text', 'image']
|
|
3764
3829
|
'stepfun/step-3.5-flash': readonly ['text', 'image']
|
|
3765
3830
|
'stepfun/step-3.7-flash': readonly ['text', 'image']
|
|
3766
3831
|
'stepfun/step-5-preview': readonly ['text', 'image']
|