@tanstack/ai-vercel-gateway 0.2.9 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-vercel-gateway",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
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.54.0"
59
+ "@tanstack/ai": "^0.55.0"
60
60
  },
61
61
  "dependencies": {
62
62
  "openai": "^6.41.0",
63
63
  "@tanstack/ai-utils": "^0.4.0",
64
- "@tanstack/openai-base": "^0.10.11"
64
+ "@tanstack/openai-base": "^0.10.12"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "vite build",
package/src/model-meta.ts CHANGED
@@ -42,7 +42,6 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
42
42
  'alibaba/qwen3.8-2.4t-a95b',
43
43
  'alibaba/qwen3.8-27b',
44
44
  'alibaba/qwen3.8-flash',
45
- 'alibaba/qwen3.8-flash-next',
46
45
  'alibaba/qwen3.8-max',
47
46
  'alibaba/qwen3.8-max-0902',
48
47
  'amazon/nova-2-lite',
@@ -68,6 +67,7 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
68
67
  'arcee-ai/trinity-large-thinking',
69
68
  'bytedance/seed-1.6',
70
69
  'bytedance/seed-1.8',
70
+ 'bytedance/seed-2.1-turbo',
71
71
  'cohere/command-a',
72
72
  'deepseek/deepseek-r1',
73
73
  'deepseek/deepseek-v3.1',
@@ -79,7 +79,7 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
79
79
  'deepseek/deepseek-v4-flash-vision-exp',
80
80
  'deepseek/deepseek-v4-pro',
81
81
  'deepseek/deepseek-v4-pro-0813',
82
- 'deepseek/deepseek-v4.1-flash-beta',
82
+ 'deepseek/deepseek-v4.1-flash',
83
83
  'fish-audio/s1',
84
84
  'fish-audio/s1-free',
85
85
  'fish-audio/s2-pro',
@@ -106,6 +106,8 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
106
106
  'google/gemini-3.6-flash',
107
107
  'google/gemini-3.7-flash',
108
108
  'google/gemini-3.8-flash',
109
+ 'google/gemini-3.8-live',
110
+ 'google/gemini-3.8-live-extended-thinking',
109
111
  'google/gemini-omni-flash-preview',
110
112
  'google/gemma-4-26b-a4b-it',
111
113
  'google/gemma-4-31b-it',
@@ -117,6 +119,10 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
117
119
  'inclusionai/ling-3.0-flash-fin-free',
118
120
  'inclusionai/ling-3.0-flash-sante',
119
121
  'inclusionai/ling-3.0-flash-sante-free',
122
+ 'inclusionai/ling-3.0-flash-vl',
123
+ 'inclusionai/ling-3.0-flash-vl-free',
124
+ 'inference-net/schematron-v2-small',
125
+ 'inference-net/schematron-v2-turbo',
120
126
  'interfaze/interfaze-beta',
121
127
  'kwaipilot/kat-coder-air-v2.5',
122
128
  'kwaipilot/kat-coder-pro-v1',
@@ -142,17 +148,13 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
142
148
  'minimax/minimax-m2.7-highspeed',
143
149
  'minimax/minimax-m3',
144
150
  'mistral/codestral',
145
- 'mistral/devstral-2',
146
- 'mistral/devstral-small-2',
147
151
  'mistral/ministral-14b',
148
152
  'mistral/ministral-3b',
149
153
  'mistral/ministral-8b',
150
154
  'mistral/mistral-large-3',
151
- 'mistral/mistral-medium',
152
155
  'mistral/mistral-medium-3.5',
153
156
  'mistral/mistral-nemo',
154
157
  'mistral/mistral-small',
155
- 'mistral/pixtral-12b',
156
158
  'moonshotai/kimi-k2',
157
159
  'moonshotai/kimi-k2-thinking',
158
160
  'moonshotai/kimi-k2.5',
@@ -218,6 +220,7 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
218
220
  'openai/gpt-5.6-terra-fast',
219
221
  'openai/gpt-6-astra',
220
222
  'openai/gpt-6-astra-fast',
223
+ 'openai/gpt-live-1',
221
224
  'openai/gpt-oss-120b',
222
225
  'openai/gpt-oss-20b',
223
226
  'openai/gpt-oss-safeguard-120b',
@@ -242,7 +245,9 @@ export const VERCEL_GATEWAY_CHAT_MODELS = [
242
245
  'perplexity/sonar-reasoning-pro',
243
246
  'poolside/laguna-s-2.1',
244
247
  'poolside/laguna-s-2.1-free',
248
+ 'sakana/fugu-max',
245
249
  'sakana/fugu-ultra',
250
+ 'sakana/fugu-ultra-v2',
246
251
  'sakana/namazu',
247
252
  'spacexai/grok-4.1-fast-non-reasoning',
248
253
  'spacexai/grok-4.1-fast-reasoning',
@@ -304,6 +309,7 @@ export const VERCEL_GATEWAY_PROVIDERS = [
304
309
  'google',
305
310
  'inception',
306
311
  'inclusionai',
312
+ 'inference-net',
307
313
  'interfaze',
308
314
  'klingai',
309
315
  'kwaipilot',
@@ -332,6 +338,7 @@ export const VERCEL_GATEWAY_PROVIDERS = [
332
338
  export type VercelGatewayProvider = (typeof VERCEL_GATEWAY_PROVIDERS)[number]
333
339
 
334
340
  export const VERCEL_GATEWAY_MODEL_TAGS = [
341
+ 'audio-input',
335
342
  'explicit-caching',
336
343
  'fast',
337
344
  'file-input',
@@ -658,16 +665,6 @@ export type VercelGatewayChatModelProviderOptionsByName = {
658
665
  | 'reasoning'
659
666
  | 'include_reasoning'
660
667
  >
661
- 'alibaba/qwen3.8-flash-next': VercelGatewayCommonOptions &
662
- Pick<
663
- VercelGatewayBaseOptions,
664
- | 'max_tokens'
665
- | 'max_output_tokens'
666
- | 'temperature'
667
- | 'stop'
668
- | 'reasoning'
669
- | 'include_reasoning'
670
- >
671
668
  'alibaba/qwen3.8-max': VercelGatewayCommonOptions &
672
669
  Pick<
673
670
  VercelGatewayBaseOptions,
@@ -894,6 +891,18 @@ export type VercelGatewayChatModelProviderOptionsByName = {
894
891
  | 'reasoning'
895
892
  | 'include_reasoning'
896
893
  >
894
+ 'bytedance/seed-2.1-turbo': VercelGatewayCommonOptions &
895
+ Pick<
896
+ VercelGatewayBaseOptions,
897
+ | 'max_tokens'
898
+ | 'max_output_tokens'
899
+ | 'temperature'
900
+ | 'stop'
901
+ | 'reasoning'
902
+ | 'include_reasoning'
903
+ | 'response_format'
904
+ | 'structured_outputs'
905
+ >
897
906
  'cohere/command-a': VercelGatewayCommonOptions &
898
907
  Pick<
899
908
  VercelGatewayBaseOptions,
@@ -989,7 +998,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
989
998
  | 'reasoning'
990
999
  | 'include_reasoning'
991
1000
  >
992
- 'deepseek/deepseek-v4.1-flash-beta': VercelGatewayCommonOptions &
1001
+ 'deepseek/deepseek-v4.1-flash': VercelGatewayCommonOptions &
993
1002
  Pick<
994
1003
  VercelGatewayBaseOptions,
995
1004
  | 'max_tokens'
@@ -1159,6 +1168,16 @@ export type VercelGatewayChatModelProviderOptionsByName = {
1159
1168
  | 'reasoning'
1160
1169
  | 'include_reasoning'
1161
1170
  >
1171
+ 'google/gemini-3.8-live': VercelGatewayCommonOptions &
1172
+ Pick<
1173
+ VercelGatewayBaseOptions,
1174
+ 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1175
+ >
1176
+ 'google/gemini-3.8-live-extended-thinking': VercelGatewayCommonOptions &
1177
+ Pick<
1178
+ VercelGatewayBaseOptions,
1179
+ 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1180
+ >
1162
1181
  'google/gemini-omni-flash-preview': VercelGatewayCommonOptions &
1163
1182
  Pick<
1164
1183
  VercelGatewayBaseOptions,
@@ -1264,6 +1283,46 @@ export type VercelGatewayChatModelProviderOptionsByName = {
1264
1283
  | 'reasoning'
1265
1284
  | 'include_reasoning'
1266
1285
  >
1286
+ 'inclusionai/ling-3.0-flash-vl': VercelGatewayCommonOptions &
1287
+ Pick<
1288
+ VercelGatewayBaseOptions,
1289
+ | 'max_tokens'
1290
+ | 'max_output_tokens'
1291
+ | 'temperature'
1292
+ | 'stop'
1293
+ | 'reasoning'
1294
+ | 'include_reasoning'
1295
+ >
1296
+ 'inclusionai/ling-3.0-flash-vl-free': VercelGatewayCommonOptions &
1297
+ Pick<
1298
+ VercelGatewayBaseOptions,
1299
+ | 'max_tokens'
1300
+ | 'max_output_tokens'
1301
+ | 'temperature'
1302
+ | 'stop'
1303
+ | 'reasoning'
1304
+ | 'include_reasoning'
1305
+ >
1306
+ 'inference-net/schematron-v2-small': VercelGatewayCommonOptions &
1307
+ Pick<
1308
+ VercelGatewayBaseOptions,
1309
+ | 'max_tokens'
1310
+ | 'max_output_tokens'
1311
+ | 'temperature'
1312
+ | 'stop'
1313
+ | 'response_format'
1314
+ | 'structured_outputs'
1315
+ >
1316
+ 'inference-net/schematron-v2-turbo': VercelGatewayCommonOptions &
1317
+ Pick<
1318
+ VercelGatewayBaseOptions,
1319
+ | 'max_tokens'
1320
+ | 'max_output_tokens'
1321
+ | 'temperature'
1322
+ | 'stop'
1323
+ | 'response_format'
1324
+ | 'structured_outputs'
1325
+ >
1267
1326
  'interfaze/interfaze-beta': VercelGatewayCommonOptions &
1268
1327
  Pick<
1269
1328
  VercelGatewayBaseOptions,
@@ -1479,16 +1538,6 @@ export type VercelGatewayChatModelProviderOptionsByName = {
1479
1538
  VercelGatewayBaseOptions,
1480
1539
  'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1481
1540
  >
1482
- 'mistral/devstral-2': VercelGatewayCommonOptions &
1483
- Pick<
1484
- VercelGatewayBaseOptions,
1485
- 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1486
- >
1487
- 'mistral/devstral-small-2': VercelGatewayCommonOptions &
1488
- Pick<
1489
- VercelGatewayBaseOptions,
1490
- 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1491
- >
1492
1541
  'mistral/ministral-14b': VercelGatewayCommonOptions &
1493
1542
  Pick<
1494
1543
  VercelGatewayBaseOptions,
@@ -1509,11 +1558,6 @@ export type VercelGatewayChatModelProviderOptionsByName = {
1509
1558
  VercelGatewayBaseOptions,
1510
1559
  'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1511
1560
  >
1512
- 'mistral/mistral-medium': VercelGatewayCommonOptions &
1513
- Pick<
1514
- VercelGatewayBaseOptions,
1515
- 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1516
- >
1517
1561
  'mistral/mistral-medium-3.5': VercelGatewayCommonOptions &
1518
1562
  Pick<
1519
1563
  VercelGatewayBaseOptions,
@@ -1534,11 +1578,6 @@ export type VercelGatewayChatModelProviderOptionsByName = {
1534
1578
  VercelGatewayBaseOptions,
1535
1579
  'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1536
1580
  >
1537
- 'mistral/pixtral-12b': VercelGatewayCommonOptions &
1538
- Pick<
1539
- VercelGatewayBaseOptions,
1540
- 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
1541
- >
1542
1581
  'moonshotai/kimi-k2': VercelGatewayCommonOptions &
1543
1582
  Pick<
1544
1583
  VercelGatewayBaseOptions,
@@ -1602,6 +1641,8 @@ export type VercelGatewayChatModelProviderOptionsByName = {
1602
1641
  | 'stop'
1603
1642
  | 'reasoning'
1604
1643
  | 'include_reasoning'
1644
+ | 'response_format'
1645
+ | 'structured_outputs'
1605
1646
  >
1606
1647
  'moonshotai/kimi-k3-fast': VercelGatewayCommonOptions &
1607
1648
  Pick<
@@ -2076,6 +2117,11 @@ export type VercelGatewayChatModelProviderOptionsByName = {
2076
2117
  | 'reasoning'
2077
2118
  | 'include_reasoning'
2078
2119
  >
2120
+ 'openai/gpt-live-1': VercelGatewayCommonOptions &
2121
+ Pick<
2122
+ VercelGatewayBaseOptions,
2123
+ 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'
2124
+ >
2079
2125
  'openai/gpt-oss-120b': VercelGatewayCommonOptions &
2080
2126
  Pick<
2081
2127
  VercelGatewayBaseOptions,
@@ -2249,6 +2295,18 @@ export type VercelGatewayChatModelProviderOptionsByName = {
2249
2295
  | 'reasoning'
2250
2296
  | 'include_reasoning'
2251
2297
  >
2298
+ 'sakana/fugu-max': VercelGatewayCommonOptions &
2299
+ Pick<
2300
+ VercelGatewayBaseOptions,
2301
+ | 'max_tokens'
2302
+ | 'max_output_tokens'
2303
+ | 'temperature'
2304
+ | 'stop'
2305
+ | 'reasoning'
2306
+ | 'include_reasoning'
2307
+ | 'response_format'
2308
+ | 'structured_outputs'
2309
+ >
2252
2310
  'sakana/fugu-ultra': VercelGatewayCommonOptions &
2253
2311
  Pick<
2254
2312
  VercelGatewayBaseOptions,
@@ -2259,6 +2317,18 @@ export type VercelGatewayChatModelProviderOptionsByName = {
2259
2317
  | 'reasoning'
2260
2318
  | 'include_reasoning'
2261
2319
  >
2320
+ 'sakana/fugu-ultra-v2': VercelGatewayCommonOptions &
2321
+ Pick<
2322
+ VercelGatewayBaseOptions,
2323
+ | 'max_tokens'
2324
+ | 'max_output_tokens'
2325
+ | 'temperature'
2326
+ | 'stop'
2327
+ | 'reasoning'
2328
+ | 'include_reasoning'
2329
+ | 'response_format'
2330
+ | 'structured_outputs'
2331
+ >
2262
2332
  'sakana/namazu': VercelGatewayCommonOptions &
2263
2333
  Pick<
2264
2334
  VercelGatewayBaseOptions,
@@ -2674,7 +2744,6 @@ export type VercelGatewayModelInputModalitiesByName = {
2674
2744
  'alibaba/qwen3.8-2.4t-a95b': readonly ['text', 'image']
2675
2745
  'alibaba/qwen3.8-27b': readonly ['text', 'image', 'document', 'video']
2676
2746
  'alibaba/qwen3.8-flash': readonly ['text', 'image', 'document']
2677
- 'alibaba/qwen3.8-flash-next': readonly ['text', 'image']
2678
2747
  'alibaba/qwen3.8-max': readonly ['text', 'image']
2679
2748
  'alibaba/qwen3.8-max-0902': readonly ['text', 'image', 'document']
2680
2749
  'amazon/nova-2-lite': readonly ['text', 'image', 'document']
@@ -2700,6 +2769,7 @@ export type VercelGatewayModelInputModalitiesByName = {
2700
2769
  'arcee-ai/trinity-large-thinking': readonly ['text']
2701
2770
  'bytedance/seed-1.6': readonly ['text', 'image']
2702
2771
  'bytedance/seed-1.8': readonly ['text', 'image']
2772
+ 'bytedance/seed-2.1-turbo': readonly ['text', 'image', 'video']
2703
2773
  'cohere/command-a': readonly ['text']
2704
2774
  'deepseek/deepseek-r1': readonly ['text']
2705
2775
  'deepseek/deepseek-v3.1': readonly ['text']
@@ -2711,7 +2781,7 @@ export type VercelGatewayModelInputModalitiesByName = {
2711
2781
  'deepseek/deepseek-v4-flash-vision-exp': readonly ['text', 'image']
2712
2782
  'deepseek/deepseek-v4-pro': readonly ['text']
2713
2783
  'deepseek/deepseek-v4-pro-0813': readonly ['text']
2714
- 'deepseek/deepseek-v4.1-flash-beta': readonly ['text', 'image']
2784
+ 'deepseek/deepseek-v4.1-flash': readonly ['text', 'image']
2715
2785
  'fish-audio/s1': readonly ['text']
2716
2786
  'fish-audio/s1-free': readonly ['text']
2717
2787
  'fish-audio/s2-pro': readonly ['text']
@@ -2743,6 +2813,8 @@ export type VercelGatewayModelInputModalitiesByName = {
2743
2813
  'google/gemini-3.6-flash': readonly ['text', 'image', 'document', 'video']
2744
2814
  'google/gemini-3.7-flash': readonly ['text', 'image', 'document', 'video']
2745
2815
  'google/gemini-3.8-flash': readonly ['text', 'image', 'document', 'video']
2816
+ 'google/gemini-3.8-live': readonly ['text', 'audio']
2817
+ 'google/gemini-3.8-live-extended-thinking': readonly ['text', 'audio']
2746
2818
  'google/gemini-omni-flash-preview': readonly [
2747
2819
  'text',
2748
2820
  'image',
@@ -2759,6 +2831,10 @@ export type VercelGatewayModelInputModalitiesByName = {
2759
2831
  'inclusionai/ling-3.0-flash-fin-free': readonly ['text']
2760
2832
  'inclusionai/ling-3.0-flash-sante': readonly ['text']
2761
2833
  'inclusionai/ling-3.0-flash-sante-free': readonly ['text']
2834
+ 'inclusionai/ling-3.0-flash-vl': readonly ['text', 'image', 'video']
2835
+ 'inclusionai/ling-3.0-flash-vl-free': readonly ['text', 'image', 'video']
2836
+ 'inference-net/schematron-v2-small': readonly ['text']
2837
+ 'inference-net/schematron-v2-turbo': readonly ['text']
2762
2838
  'interfaze/interfaze-beta': readonly ['text', 'image', 'document']
2763
2839
  'kwaipilot/kat-coder-air-v2.5': readonly ['text', 'image']
2764
2840
  'kwaipilot/kat-coder-pro-v1': readonly ['text']
@@ -2784,17 +2860,13 @@ export type VercelGatewayModelInputModalitiesByName = {
2784
2860
  'minimax/minimax-m2.7-highspeed': readonly ['text']
2785
2861
  'minimax/minimax-m3': readonly ['text', 'image', 'document']
2786
2862
  'mistral/codestral': readonly ['text']
2787
- 'mistral/devstral-2': readonly ['text']
2788
- 'mistral/devstral-small-2': readonly ['text', 'image']
2789
2863
  'mistral/ministral-14b': readonly ['text', 'image', 'document']
2790
2864
  'mistral/ministral-3b': readonly ['text', 'image']
2791
2865
  'mistral/ministral-8b': readonly ['text', 'image']
2792
2866
  'mistral/mistral-large-3': readonly ['text', 'image']
2793
- 'mistral/mistral-medium': readonly ['text', 'image']
2794
2867
  'mistral/mistral-medium-3.5': readonly ['text', 'image']
2795
- 'mistral/mistral-nemo': readonly ['text', 'image']
2868
+ 'mistral/mistral-nemo': readonly ['text']
2796
2869
  'mistral/mistral-small': readonly ['text', 'image']
2797
- 'mistral/pixtral-12b': readonly ['text', 'image']
2798
2870
  'moonshotai/kimi-k2': readonly ['text']
2799
2871
  'moonshotai/kimi-k2-thinking': readonly ['text']
2800
2872
  'moonshotai/kimi-k2.5': readonly ['text', 'image', 'video']
@@ -2865,6 +2937,7 @@ export type VercelGatewayModelInputModalitiesByName = {
2865
2937
  'openai/gpt-5.6-terra-fast': readonly ['text', 'image', 'document']
2866
2938
  'openai/gpt-6-astra': readonly ['text', 'image', 'document']
2867
2939
  'openai/gpt-6-astra-fast': readonly ['text', 'image', 'document']
2940
+ 'openai/gpt-live-1': readonly ['text', 'audio']
2868
2941
  'openai/gpt-oss-120b': readonly ['text']
2869
2942
  'openai/gpt-oss-20b': readonly ['text']
2870
2943
  'openai/gpt-oss-safeguard-120b': readonly ['text']
@@ -2889,7 +2962,9 @@ export type VercelGatewayModelInputModalitiesByName = {
2889
2962
  'perplexity/sonar-reasoning-pro': readonly ['text', 'image']
2890
2963
  'poolside/laguna-s-2.1': readonly ['text']
2891
2964
  'poolside/laguna-s-2.1-free': readonly ['text']
2965
+ 'sakana/fugu-max': readonly ['text', 'image']
2892
2966
  'sakana/fugu-ultra': readonly ['text', 'image']
2967
+ 'sakana/fugu-ultra-v2': readonly ['text', 'image']
2893
2968
  'sakana/namazu': readonly ['text', 'image', 'document']
2894
2969
  'spacexai/grok-4.1-fast-non-reasoning': readonly ['text', 'image', 'document']
2895
2970
  'spacexai/grok-4.1-fast-reasoning': readonly ['text', 'image', 'document']