@ai-sdk/gateway 4.0.117 → 4.0.119
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.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/gateway-decision-model.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ai-sdk/gateway
|
|
2
2
|
|
|
3
|
+
## 4.0.119
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9d13c4d: Add the MiniMax M3.1 Flash model ID to the MiniMax and AI Gateway providers.
|
|
8
|
+
- 0c2a9de: Add `maxOutputTokens` and `reasoning` to experimental decision calls and forward them to language-model-backed decisions. Language-model adapters keep reasoning disabled when omitted. Native decision providers warn when either setting is unsupported.
|
|
9
|
+
- Updated dependencies [0c2a9de]
|
|
10
|
+
- Updated dependencies [200c47f]
|
|
11
|
+
- @ai-sdk/provider@4.0.31
|
|
12
|
+
- @ai-sdk/provider-utils@5.0.64
|
|
13
|
+
|
|
14
|
+
## 4.0.118
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 1c47fee: chore(provider/gateway): update gateway model settings files
|
|
19
|
+
|
|
3
20
|
## 4.0.117
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1837,7 +1837,7 @@ var GatewayDecisionModel = class {
|
|
|
1837
1837
|
doEvaluate(options) {
|
|
1838
1838
|
return this.doDecide(options);
|
|
1839
1839
|
}
|
|
1840
|
-
async doDecide({ state, questions, headers, abortSignal, providerOptions }) {
|
|
1840
|
+
async doDecide({ state, questions, maxOutputTokens, reasoning, headers, abortSignal, providerOptions }) {
|
|
1841
1841
|
const stateParts = toGatewayDecisionState(state);
|
|
1842
1842
|
const gatewayOptions = await parseProviderOptions({
|
|
1843
1843
|
provider: "gateway",
|
|
@@ -1856,6 +1856,8 @@ var GatewayDecisionModel = class {
|
|
|
1856
1856
|
body: {
|
|
1857
1857
|
stateParts,
|
|
1858
1858
|
questions,
|
|
1859
|
+
maxOutputTokens,
|
|
1860
|
+
reasoning,
|
|
1859
1861
|
...validatedProviderOptions ? { providerOptions: validatedProviderOptions } : {}
|
|
1860
1862
|
},
|
|
1861
1863
|
successfulResponseHandler: createJsonResponseHandler(gatewayDecisionResponseSchema),
|
|
@@ -3050,7 +3052,7 @@ async function getVercelRequestId() {
|
|
|
3050
3052
|
}
|
|
3051
3053
|
//#endregion
|
|
3052
3054
|
//#region src/version.ts
|
|
3053
|
-
const VERSION = "4.0.
|
|
3055
|
+
const VERSION = "4.0.119";
|
|
3054
3056
|
//#endregion
|
|
3055
3057
|
//#region src/gateway-provider.ts
|
|
3056
3058
|
const AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|