ai 4.0.39 → 4.0.41
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 +16 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 4.0.41
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [44f04d5]
|
8
|
+
- @ai-sdk/react@1.0.14
|
9
|
+
|
10
|
+
## 4.0.40
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- 33592d2: fix (ai/core): switch to json schema 7 target for zod to json schema conversion
|
15
|
+
- Updated dependencies [33592d2]
|
16
|
+
- @ai-sdk/ui-utils@1.0.12
|
17
|
+
- @ai-sdk/react@1.0.13
|
18
|
+
|
3
19
|
## 4.0.39
|
4
20
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
@@ -1962,7 +1962,7 @@ var arrayOutputStrategy = (schema) => {
|
|
1962
1962
|
// be able to generate an array directly:
|
1963
1963
|
// possible future optimization: use arrays directly when model supports grammar-guided generation
|
1964
1964
|
jsonSchema: {
|
1965
|
-
$schema: "
|
1965
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
1966
1966
|
type: "object",
|
1967
1967
|
properties: {
|
1968
1968
|
elements: { type: "array", items: itemSchema }
|
@@ -2074,7 +2074,7 @@ var enumOutputStrategy = (enumValues) => {
|
|
2074
2074
|
// be able to generate an enum value directly:
|
2075
2075
|
// possible future optimization: use enums directly when model supports top-level enums
|
2076
2076
|
jsonSchema: {
|
2077
|
-
$schema: "
|
2077
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
2078
2078
|
type: "object",
|
2079
2079
|
properties: {
|
2080
2080
|
result: { type: "string", enum: enumValues }
|