@ai-sdk/gateway 4.0.105 → 4.0.106
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 +9 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/gateway-decision-model.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @ai-sdk/gateway
|
|
2
2
|
|
|
3
|
+
## 4.0.106
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d3bcad9: feat(provider): report decision refusals as refusal answers
|
|
8
|
+
- Updated dependencies [d3bcad9]
|
|
9
|
+
- @ai-sdk/provider@4.0.24
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.56
|
|
11
|
+
|
|
3
12
|
## 4.0.105
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1904,7 +1904,8 @@ const gatewayDecisionAnswerSchema = z.discriminatedUnion("type", [
|
|
|
1904
1904
|
z.object({
|
|
1905
1905
|
type: z.literal("boolean"),
|
|
1906
1906
|
probability: z.number()
|
|
1907
|
-
})
|
|
1907
|
+
}),
|
|
1908
|
+
z.object({ type: z.literal("refusal") })
|
|
1908
1909
|
]);
|
|
1909
1910
|
const gatewayDecisionWarningSchema = z.discriminatedUnion("type", [
|
|
1910
1911
|
z.object({
|
|
@@ -3033,7 +3034,7 @@ async function getVercelRequestId() {
|
|
|
3033
3034
|
}
|
|
3034
3035
|
//#endregion
|
|
3035
3036
|
//#region src/version.ts
|
|
3036
|
-
const VERSION = "4.0.
|
|
3037
|
+
const VERSION = "4.0.106";
|
|
3037
3038
|
//#endregion
|
|
3038
3039
|
//#region src/gateway-provider.ts
|
|
3039
3040
|
const AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|