@ai-sdk/gateway 3.0.0 → 3.0.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/CHANGELOG.md +26 -205
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/gateway
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [29264a3]
|
|
8
|
+
- @ai-sdk/provider-utils@4.0.1
|
|
9
|
+
|
|
10
|
+
## 3.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- c0c8a0e: Add zai/glm-4.7 model support
|
|
15
|
+
|
|
3
16
|
## 3.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
|
@@ -86,70 +99,7 @@
|
|
|
86
99
|
- cbf52cd: feat: expose raw finish reason
|
|
87
100
|
- 870297d: feat(google): gemini-3-flash
|
|
88
101
|
- f0b2157: fix: revert zod import change
|
|
89
|
-
- Updated dependencies
|
|
90
|
-
- Updated dependencies [0adc679]
|
|
91
|
-
- Updated dependencies [50b70d6]
|
|
92
|
-
- Updated dependencies [d1bdadb]
|
|
93
|
-
- Updated dependencies [dee8b05]
|
|
94
|
-
- Updated dependencies [046aa3b]
|
|
95
|
-
- Updated dependencies [8d9e8ad]
|
|
96
|
-
- Updated dependencies [78928cb]
|
|
97
|
-
- Updated dependencies [dce03c4]
|
|
98
|
-
- Updated dependencies [2625a04]
|
|
99
|
-
- Updated dependencies [37c58a0]
|
|
100
|
-
- Updated dependencies [3b1d015]
|
|
101
|
-
- Updated dependencies [2b0caef]
|
|
102
|
-
- Updated dependencies [95f65c2]
|
|
103
|
-
- Updated dependencies [016b111]
|
|
104
|
-
- Updated dependencies [58920e0]
|
|
105
|
-
- Updated dependencies [954c356]
|
|
106
|
-
- Updated dependencies [544d4e8]
|
|
107
|
-
- Updated dependencies [0c4822d]
|
|
108
|
-
- Updated dependencies [521c537]
|
|
109
|
-
- Updated dependencies [4c44a5b]
|
|
110
|
-
- Updated dependencies [e8109d3]
|
|
111
|
-
- Updated dependencies [03849b0]
|
|
112
|
-
- Updated dependencies [ed329cb]
|
|
113
|
-
- Updated dependencies [e06565c]
|
|
114
|
-
- Updated dependencies [32d8dbb]
|
|
115
|
-
- Updated dependencies [53f3368]
|
|
116
|
-
- Updated dependencies [d116b4b]
|
|
117
|
-
- Updated dependencies [3bd2689]
|
|
118
|
-
- Updated dependencies [293a6b7]
|
|
119
|
-
- Updated dependencies [703459a]
|
|
120
|
-
- Updated dependencies [bb36798]
|
|
121
|
-
- Updated dependencies [83e5744]
|
|
122
|
-
- Updated dependencies [7e32fea]
|
|
123
|
-
- Updated dependencies [3ed5519]
|
|
124
|
-
- Updated dependencies [8dac895]
|
|
125
|
-
- Updated dependencies [a755db5]
|
|
126
|
-
- Updated dependencies [cbb1d35]
|
|
127
|
-
- Updated dependencies [475189e]
|
|
128
|
-
- Updated dependencies [457318b]
|
|
129
|
-
- Updated dependencies [b681d7d]
|
|
130
|
-
- Updated dependencies [db913bd]
|
|
131
|
-
- Updated dependencies [9061dc0]
|
|
132
|
-
- Updated dependencies [32223c8]
|
|
133
|
-
- Updated dependencies [c1efac4]
|
|
134
|
-
- Updated dependencies [366f50b]
|
|
135
|
-
- Updated dependencies [4616b86]
|
|
136
|
-
- Updated dependencies [81d4308]
|
|
137
|
-
- Updated dependencies [9549c9e]
|
|
138
|
-
- Updated dependencies [af3780b]
|
|
139
|
-
- Updated dependencies [4f16c37]
|
|
140
|
-
- Updated dependencies [81e29ab]
|
|
141
|
-
- Updated dependencies [522f6b8]
|
|
142
|
-
- Updated dependencies [6306603]
|
|
143
|
-
- Updated dependencies [fca786b]
|
|
144
|
-
- Updated dependencies [763d04a]
|
|
145
|
-
- Updated dependencies [10d819b]
|
|
146
|
-
- Updated dependencies [3794514]
|
|
147
|
-
- Updated dependencies [cbf52cd]
|
|
148
|
-
- Updated dependencies [e9e157f]
|
|
149
|
-
- Updated dependencies [960ec8f]
|
|
150
|
-
- Updated dependencies [1bd7d32]
|
|
151
|
-
- Updated dependencies [f0b2157]
|
|
152
|
-
- Updated dependencies [95f65c2]
|
|
102
|
+
- Updated dependencies
|
|
153
103
|
- @ai-sdk/provider@3.0.0
|
|
154
104
|
- @ai-sdk/provider-utils@4.0.0
|
|
155
105
|
|
|
@@ -678,8 +628,7 @@
|
|
|
678
628
|
### Patch Changes
|
|
679
629
|
|
|
680
630
|
- 95f65c2: chore: use import \* from zod/v4
|
|
681
|
-
- Updated dependencies
|
|
682
|
-
- Updated dependencies [95f65c2]
|
|
631
|
+
- Updated dependencies
|
|
683
632
|
- @ai-sdk/provider-utils@4.0.0-beta.11
|
|
684
633
|
|
|
685
634
|
## 2.0.0-beta.21
|
|
@@ -726,8 +675,7 @@
|
|
|
726
675
|
|
|
727
676
|
### Patch Changes
|
|
728
677
|
|
|
729
|
-
- Updated dependencies
|
|
730
|
-
- Updated dependencies [e8109d3]
|
|
678
|
+
- Updated dependencies
|
|
731
679
|
- @ai-sdk/provider@2.1.0-beta.5
|
|
732
680
|
- @ai-sdk/provider-utils@3.1.0-beta.7
|
|
733
681
|
|
|
@@ -748,8 +696,7 @@
|
|
|
748
696
|
### Patch Changes
|
|
749
697
|
|
|
750
698
|
- 0adc679: feat(provider): shared spec v3
|
|
751
|
-
- Updated dependencies
|
|
752
|
-
- Updated dependencies [2b0caef]
|
|
699
|
+
- Updated dependencies
|
|
753
700
|
- @ai-sdk/provider-utils@3.1.0-beta.6
|
|
754
701
|
- @ai-sdk/provider@2.1.0-beta.4
|
|
755
702
|
|
|
@@ -800,8 +747,7 @@
|
|
|
800
747
|
|
|
801
748
|
- aaf5ebf: feat(provider/gateway): Add new Qwen models to Gateway model string autocomplete
|
|
802
749
|
- ed329cb: feat: `Provider-V3`
|
|
803
|
-
- Updated dependencies
|
|
804
|
-
- Updated dependencies [522f6b8]
|
|
750
|
+
- Updated dependencies
|
|
805
751
|
- @ai-sdk/provider@2.1.0-beta.2
|
|
806
752
|
- @ai-sdk/provider-utils@3.1.0-beta.3
|
|
807
753
|
|
|
@@ -973,8 +919,7 @@
|
|
|
973
919
|
### Patch Changes
|
|
974
920
|
|
|
975
921
|
- eefa730: refactor(provider/gateway): Make claude-sonnet-4 and similar the primary model slug for Anthropic v4 models
|
|
976
|
-
- Updated dependencies
|
|
977
|
-
- Updated dependencies [f25040d]
|
|
922
|
+
- Updated dependencies
|
|
978
923
|
- @ai-sdk/provider-utils@3.0.3
|
|
979
924
|
|
|
980
925
|
## 1.0.5
|
|
@@ -1042,108 +987,7 @@
|
|
|
1042
987
|
- 205077b: fix: improve Zod compatibility
|
|
1043
988
|
- e001ea1: fix (provider/gateway): remove unnecessary 'x-' prefix on auth method header
|
|
1044
989
|
- 27deb4d: feat (provider/gateway): Add providerMetadata to embeddings response
|
|
1045
|
-
- Updated dependencies
|
|
1046
|
-
- Updated dependencies [742b7be]
|
|
1047
|
-
- Updated dependencies [e7fcc86]
|
|
1048
|
-
- Updated dependencies [7cddb72]
|
|
1049
|
-
- Updated dependencies [ccce59b]
|
|
1050
|
-
- Updated dependencies [e2b9e4b]
|
|
1051
|
-
- Updated dependencies [95857aa]
|
|
1052
|
-
- Updated dependencies [45c1ea2]
|
|
1053
|
-
- Updated dependencies [6f6bb89]
|
|
1054
|
-
- Updated dependencies [060370c]
|
|
1055
|
-
- Updated dependencies [dc714f3]
|
|
1056
|
-
- Updated dependencies [b5da06a]
|
|
1057
|
-
- Updated dependencies [d1a1aa1]
|
|
1058
|
-
- Updated dependencies [63f9e9b]
|
|
1059
|
-
- Updated dependencies [5d142ab]
|
|
1060
|
-
- Updated dependencies [d5f588f]
|
|
1061
|
-
- Updated dependencies [e025824]
|
|
1062
|
-
- Updated dependencies [0571b98]
|
|
1063
|
-
- Updated dependencies [b6b43c7]
|
|
1064
|
-
- Updated dependencies [4fef487]
|
|
1065
|
-
- Updated dependencies [48d257a]
|
|
1066
|
-
- Updated dependencies [0c0c0b3]
|
|
1067
|
-
- Updated dependencies [0d2c085]
|
|
1068
|
-
- Updated dependencies [40acf9b]
|
|
1069
|
-
- Updated dependencies [9222aeb]
|
|
1070
|
-
- Updated dependencies [e2aceaf]
|
|
1071
|
-
- Updated dependencies [411e483]
|
|
1072
|
-
- Updated dependencies [8ba77a7]
|
|
1073
|
-
- Updated dependencies [7b3ae3f]
|
|
1074
|
-
- Updated dependencies [a166433]
|
|
1075
|
-
- Updated dependencies [26735b5]
|
|
1076
|
-
- Updated dependencies [443d8ec]
|
|
1077
|
-
- Updated dependencies [a8c8bd5]
|
|
1078
|
-
- Updated dependencies [abf9a79]
|
|
1079
|
-
- Updated dependencies [14c9410]
|
|
1080
|
-
- Updated dependencies [e86be6f]
|
|
1081
|
-
- Updated dependencies [9bf7291]
|
|
1082
|
-
- Updated dependencies [2e13791]
|
|
1083
|
-
- Updated dependencies [9f95b35]
|
|
1084
|
-
- Updated dependencies [66962ed]
|
|
1085
|
-
- Updated dependencies [0d06df6]
|
|
1086
|
-
- Updated dependencies [472524a]
|
|
1087
|
-
- Updated dependencies [dd3ff01]
|
|
1088
|
-
- Updated dependencies [d9c98f4]
|
|
1089
|
-
- Updated dependencies [05d2819]
|
|
1090
|
-
- Updated dependencies [9301f86]
|
|
1091
|
-
- Updated dependencies [0a87932]
|
|
1092
|
-
- Updated dependencies [c4a2fec]
|
|
1093
|
-
- Updated dependencies [957b739]
|
|
1094
|
-
- Updated dependencies [79457bd]
|
|
1095
|
-
- Updated dependencies [a3f768e]
|
|
1096
|
-
- Updated dependencies [7435eb5]
|
|
1097
|
-
- Updated dependencies [8aa9e20]
|
|
1098
|
-
- Updated dependencies [4617fab]
|
|
1099
|
-
- Updated dependencies [ac34802]
|
|
1100
|
-
- Updated dependencies [0054544]
|
|
1101
|
-
- Updated dependencies [cb68df0]
|
|
1102
|
-
- Updated dependencies [ad80501]
|
|
1103
|
-
- Updated dependencies [68ecf2f]
|
|
1104
|
-
- Updated dependencies [9e9c809]
|
|
1105
|
-
- Updated dependencies [32831c6]
|
|
1106
|
-
- Updated dependencies [6dc848c]
|
|
1107
|
-
- Updated dependencies [6b98118]
|
|
1108
|
-
- Updated dependencies [d0f9495]
|
|
1109
|
-
- Updated dependencies [63d791d]
|
|
1110
|
-
- Updated dependencies [87b828f]
|
|
1111
|
-
- Updated dependencies [3f2f00c]
|
|
1112
|
-
- Updated dependencies [bfdca8d]
|
|
1113
|
-
- Updated dependencies [0ff02bb]
|
|
1114
|
-
- Updated dependencies [7979f7f]
|
|
1115
|
-
- Updated dependencies [39a4fab]
|
|
1116
|
-
- Updated dependencies [44f4aba]
|
|
1117
|
-
- Updated dependencies [9bd5ab5]
|
|
1118
|
-
- Updated dependencies [57edfcb]
|
|
1119
|
-
- Updated dependencies [faf8446]
|
|
1120
|
-
- Updated dependencies [7ea4132]
|
|
1121
|
-
- Updated dependencies [d1a034f]
|
|
1122
|
-
- Updated dependencies [5c56081]
|
|
1123
|
-
- Updated dependencies [fd65bc6]
|
|
1124
|
-
- Updated dependencies [023ba40]
|
|
1125
|
-
- Updated dependencies [ea7a7c9]
|
|
1126
|
-
- Updated dependencies [26535e0]
|
|
1127
|
-
- Updated dependencies [e030615]
|
|
1128
|
-
- Updated dependencies [5e57fae]
|
|
1129
|
-
- Updated dependencies [393138b]
|
|
1130
|
-
- Updated dependencies [c57e248]
|
|
1131
|
-
- Updated dependencies [88a8ee5]
|
|
1132
|
-
- Updated dependencies [41fa418]
|
|
1133
|
-
- Updated dependencies [205077b]
|
|
1134
|
-
- Updated dependencies [71f938d]
|
|
1135
|
-
- Updated dependencies [3795467]
|
|
1136
|
-
- Updated dependencies [28a5ed5]
|
|
1137
|
-
- Updated dependencies [7182d14]
|
|
1138
|
-
- Updated dependencies [c1e6647]
|
|
1139
|
-
- Updated dependencies [1766ede]
|
|
1140
|
-
- Updated dependencies [811dff3]
|
|
1141
|
-
- Updated dependencies [f10304b]
|
|
1142
|
-
- Updated dependencies [dd5fd43]
|
|
1143
|
-
- Updated dependencies [33f4a6a]
|
|
1144
|
-
- Updated dependencies [383cbfa]
|
|
1145
|
-
- Updated dependencies [27deb4d]
|
|
1146
|
-
- Updated dependencies [c4df419]
|
|
990
|
+
- Updated dependencies
|
|
1147
991
|
- @ai-sdk/provider-utils@3.0.0
|
|
1148
992
|
- @ai-sdk/provider@2.0.0
|
|
1149
993
|
|
|
@@ -1216,8 +1060,7 @@
|
|
|
1216
1060
|
|
|
1217
1061
|
### Patch Changes
|
|
1218
1062
|
|
|
1219
|
-
- Updated dependencies
|
|
1220
|
-
- Updated dependencies [383cbfa]
|
|
1063
|
+
- Updated dependencies
|
|
1221
1064
|
- @ai-sdk/provider-utils@3.0.0-beta.5
|
|
1222
1065
|
|
|
1223
1066
|
## 1.0.0-beta.9
|
|
@@ -1272,9 +1115,7 @@
|
|
|
1272
1115
|
|
|
1273
1116
|
- c91586a: chore (providers/gateway): update language model ids
|
|
1274
1117
|
- d1a034f: feature: using Zod 4 for internal stuff
|
|
1275
|
-
- Updated dependencies
|
|
1276
|
-
- Updated dependencies [39a4fab]
|
|
1277
|
-
- Updated dependencies [d1a034f]
|
|
1118
|
+
- Updated dependencies
|
|
1278
1119
|
- @ai-sdk/provider-utils@3.0.0-beta.2
|
|
1279
1120
|
|
|
1280
1121
|
## 1.0.0-beta.1
|
|
@@ -1282,23 +1123,7 @@
|
|
|
1282
1123
|
### Patch Changes
|
|
1283
1124
|
|
|
1284
1125
|
- f77bc38: chore (providers/gateway): update language model ids
|
|
1285
|
-
- Updated dependencies
|
|
1286
|
-
- Updated dependencies [7cddb72]
|
|
1287
|
-
- Updated dependencies [ccce59b]
|
|
1288
|
-
- Updated dependencies [e2b9e4b]
|
|
1289
|
-
- Updated dependencies [45c1ea2]
|
|
1290
|
-
- Updated dependencies [e025824]
|
|
1291
|
-
- Updated dependencies [0d06df6]
|
|
1292
|
-
- Updated dependencies [472524a]
|
|
1293
|
-
- Updated dependencies [dd3ff01]
|
|
1294
|
-
- Updated dependencies [7435eb5]
|
|
1295
|
-
- Updated dependencies [cb68df0]
|
|
1296
|
-
- Updated dependencies [bfdca8d]
|
|
1297
|
-
- Updated dependencies [44f4aba]
|
|
1298
|
-
- Updated dependencies [023ba40]
|
|
1299
|
-
- Updated dependencies [5e57fae]
|
|
1300
|
-
- Updated dependencies [71f938d]
|
|
1301
|
-
- Updated dependencies [28a5ed5]
|
|
1126
|
+
- Updated dependencies
|
|
1302
1127
|
- @ai-sdk/provider@2.0.0-beta.1
|
|
1303
1128
|
- @ai-sdk/provider-utils@3.0.0-beta.1
|
|
1304
1129
|
|
|
@@ -1307,8 +1132,7 @@
|
|
|
1307
1132
|
### Patch Changes
|
|
1308
1133
|
|
|
1309
1134
|
- c145d62: feat (providers/gateway): add createGateway shorthand alias for createGatewayProvider
|
|
1310
|
-
- Updated dependencies
|
|
1311
|
-
- Updated dependencies [8ba77a7]
|
|
1135
|
+
- Updated dependencies
|
|
1312
1136
|
- @ai-sdk/provider@2.0.0-alpha.15
|
|
1313
1137
|
- @ai-sdk/provider-utils@3.0.0-alpha.15
|
|
1314
1138
|
|
|
@@ -1316,9 +1140,7 @@
|
|
|
1316
1140
|
|
|
1317
1141
|
### Patch Changes
|
|
1318
1142
|
|
|
1319
|
-
- Updated dependencies
|
|
1320
|
-
- Updated dependencies [63f9e9b]
|
|
1321
|
-
- Updated dependencies [2e13791]
|
|
1143
|
+
- Updated dependencies
|
|
1322
1144
|
- @ai-sdk/provider@2.0.0-alpha.14
|
|
1323
1145
|
- @ai-sdk/provider-utils@3.0.0-alpha.14
|
|
1324
1146
|
|
|
@@ -1371,8 +1193,7 @@
|
|
|
1371
1193
|
- 3cbcbb7: feat (providers/gateway): share common gateway error transform logic
|
|
1372
1194
|
- 989ac75: chore (providers/gateway): update chat model ids
|
|
1373
1195
|
- 7742ba3: feat (providers/gateway): add gateway error types with error detail
|
|
1374
|
-
- Updated dependencies
|
|
1375
|
-
- Updated dependencies [9222aeb]
|
|
1196
|
+
- Updated dependencies
|
|
1376
1197
|
- @ai-sdk/provider-utils@3.0.0-alpha.8
|
|
1377
1198
|
- @ai-sdk/provider@2.0.0-alpha.8
|
|
1378
1199
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { LanguageModelV3, ProviderV3, EmbeddingModelV3, ImageModelV3, TypeValida
|
|
|
2
2
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
3
|
import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
|
|
4
4
|
|
|
5
|
-
type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3-opus' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.5-sonnet' | 'anthropic/claude-3.5-sonnet-20240620' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'arcee-ai/trinity-mini' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2-exp' | 'deepseek/deepseek-v3.2-exp-thinking' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-image-preview' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemini-3-pro-preview' | 'google/gemini-3-pro-image' | 'google/gemini-3-flash' | 'inception/mercury-coder-small' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'mistral/codestral' | 'mistral/devstral-small' | 'mistral/magistral-medium' | 'mistral/magistral-medium-2506' | 'mistral/magistral-small' | 'mistral/magistral-small-2506' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large' | 'mistral/mistral-medium' | 'mistral/mistral-small' | 'mistral/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat-latest' | 'openai/gpt-5.2-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning' | 'perplexity/sonar-reasoning-pro' | 'prime-intellect/intellect-3' | 'stealth/sonoma-dusk-alpha' | 'stealth/sonoma-sky-alpha' | 'vercel/v0-1.0-md' | 'vercel/v0-1.5-md' | 'xai/grok-2' | 'xai/grok-2-vision' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-code-fast-1' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | (string & {});
|
|
5
|
+
type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3-opus' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.5-sonnet' | 'anthropic/claude-3.5-sonnet-20240620' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'arcee-ai/trinity-mini' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2-exp' | 'deepseek/deepseek-v3.2-exp-thinking' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-image-preview' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemini-3-pro-preview' | 'google/gemini-3-pro-image' | 'google/gemini-3-flash' | 'inception/mercury-coder-small' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'mistral/codestral' | 'mistral/devstral-small' | 'mistral/magistral-medium' | 'mistral/magistral-medium-2506' | 'mistral/magistral-small' | 'mistral/magistral-small-2506' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large' | 'mistral/mistral-medium' | 'mistral/mistral-small' | 'mistral/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat-latest' | 'openai/gpt-5.2-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning' | 'perplexity/sonar-reasoning-pro' | 'prime-intellect/intellect-3' | 'stealth/sonoma-dusk-alpha' | 'stealth/sonoma-sky-alpha' | 'vercel/v0-1.0-md' | 'vercel/v0-1.5-md' | 'xai/grok-2' | 'xai/grok-2-vision' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-code-fast-1' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.7' | (string & {});
|
|
6
6
|
|
|
7
7
|
interface GatewayLanguageModelEntry {
|
|
8
8
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LanguageModelV3, ProviderV3, EmbeddingModelV3, ImageModelV3, TypeValida
|
|
|
2
2
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
3
|
import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
|
|
4
4
|
|
|
5
|
-
type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3-opus' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.5-sonnet' | 'anthropic/claude-3.5-sonnet-20240620' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'arcee-ai/trinity-mini' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2-exp' | 'deepseek/deepseek-v3.2-exp-thinking' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-image-preview' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemini-3-pro-preview' | 'google/gemini-3-pro-image' | 'google/gemini-3-flash' | 'inception/mercury-coder-small' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'mistral/codestral' | 'mistral/devstral-small' | 'mistral/magistral-medium' | 'mistral/magistral-medium-2506' | 'mistral/magistral-small' | 'mistral/magistral-small-2506' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large' | 'mistral/mistral-medium' | 'mistral/mistral-small' | 'mistral/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat-latest' | 'openai/gpt-5.2-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning' | 'perplexity/sonar-reasoning-pro' | 'prime-intellect/intellect-3' | 'stealth/sonoma-dusk-alpha' | 'stealth/sonoma-sky-alpha' | 'vercel/v0-1.0-md' | 'vercel/v0-1.5-md' | 'xai/grok-2' | 'xai/grok-2-vision' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-code-fast-1' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | (string & {});
|
|
5
|
+
type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3-opus' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.5-sonnet' | 'anthropic/claude-3.5-sonnet-20240620' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'arcee-ai/trinity-mini' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2-exp' | 'deepseek/deepseek-v3.2-exp-thinking' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-image-preview' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemini-3-pro-preview' | 'google/gemini-3-pro-image' | 'google/gemini-3-flash' | 'inception/mercury-coder-small' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'mistral/codestral' | 'mistral/devstral-small' | 'mistral/magistral-medium' | 'mistral/magistral-medium-2506' | 'mistral/magistral-small' | 'mistral/magistral-small-2506' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large' | 'mistral/mistral-medium' | 'mistral/mistral-small' | 'mistral/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat-latest' | 'openai/gpt-5.2-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning' | 'perplexity/sonar-reasoning-pro' | 'prime-intellect/intellect-3' | 'stealth/sonoma-dusk-alpha' | 'stealth/sonoma-sky-alpha' | 'vercel/v0-1.0-md' | 'vercel/v0-1.5-md' | 'xai/grok-2' | 'xai/grok-2-vision' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-code-fast-1' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.7' | (string & {});
|
|
6
6
|
|
|
7
7
|
interface GatewayLanguageModelEntry {
|
|
8
8
|
/**
|
package/dist/index.js
CHANGED
|
@@ -807,7 +807,7 @@ async function getVercelRequestId() {
|
|
|
807
807
|
var import_provider_utils9 = require("@ai-sdk/provider-utils");
|
|
808
808
|
|
|
809
809
|
// src/version.ts
|
|
810
|
-
var VERSION = true ? "3.0.
|
|
810
|
+
var VERSION = true ? "3.0.2" : "0.0.0-test";
|
|
811
811
|
|
|
812
812
|
// src/gateway-provider.ts
|
|
813
813
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
package/dist/index.mjs
CHANGED
|
@@ -811,7 +811,7 @@ async function getVercelRequestId() {
|
|
|
811
811
|
import { withUserAgentSuffix } from "@ai-sdk/provider-utils";
|
|
812
812
|
|
|
813
813
|
// src/version.ts
|
|
814
|
-
var VERSION = true ? "3.0.
|
|
814
|
+
var VERSION = true ? "3.0.2" : "0.0.0-test";
|
|
815
815
|
|
|
816
816
|
// src/gateway-provider.ts
|
|
817
817
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/gateway",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@vercel/oidc": "3.0.5",
|
|
25
25
|
"@ai-sdk/provider": "3.0.0",
|
|
26
|
-
"@ai-sdk/provider-utils": "4.0.
|
|
26
|
+
"@ai-sdk/provider-utils": "4.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "18.15.11",
|