@ai-sdk/gateway 4.0.118 → 4.0.120
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 +17 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/gateway-decision-model.ts +4 -0
- package/src/gateway-language-model-settings.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/gateway",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.120",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ai-sdk/provider": "4.0.
|
|
34
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
33
|
+
"@ai-sdk/provider": "4.0.31",
|
|
34
|
+
"@ai-sdk/provider-utils": "5.0.64",
|
|
35
35
|
"@vercel/oidc": "3.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -48,6 +48,8 @@ export class GatewayDecisionModel implements DecisionModelV4 {
|
|
|
48
48
|
async doDecide({
|
|
49
49
|
state,
|
|
50
50
|
questions,
|
|
51
|
+
maxOutputTokens,
|
|
52
|
+
reasoning,
|
|
51
53
|
headers,
|
|
52
54
|
abortSignal,
|
|
53
55
|
providerOptions,
|
|
@@ -83,6 +85,8 @@ export class GatewayDecisionModel implements DecisionModelV4 {
|
|
|
83
85
|
body: {
|
|
84
86
|
stateParts,
|
|
85
87
|
questions,
|
|
88
|
+
maxOutputTokens,
|
|
89
|
+
reasoning,
|
|
86
90
|
...(validatedProviderOptions
|
|
87
91
|
? { providerOptions: validatedProviderOptions }
|
|
88
92
|
: {}),
|
|
@@ -113,6 +113,7 @@ export type GatewayModelId =
|
|
|
113
113
|
| 'google/gemma-4-31b-it'
|
|
114
114
|
| 'inception/mercury-2'
|
|
115
115
|
| 'inception/mercury-2.5'
|
|
116
|
+
| 'inception/mercury-3'
|
|
116
117
|
| 'inception/mercury-coder-small'
|
|
117
118
|
| 'inclusionai/ling-3.0-flash'
|
|
118
119
|
| 'inclusionai/ling-3.0-flash-fin'
|
|
@@ -287,7 +288,6 @@ export type GatewayModelId =
|
|
|
287
288
|
| 'spacexai/grok-4.6'
|
|
288
289
|
| 'spacexai/grok-4.7'
|
|
289
290
|
| 'spacexai/grok-build-0.1'
|
|
290
|
-
| 'stealth/cat-jam'
|
|
291
291
|
| 'stealth/glyph-cluster'
|
|
292
292
|
| 'stepfun/step-3.7-flash'
|
|
293
293
|
| 'stepfun/step-5-preview'
|