ai 4.0.33 → 4.0.34
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 +11 -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 +4 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 4.0.34
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 2495973: feat (ai/core): use openai compatible mode for json schema conversion
|
8
|
+
- 2495973: fix (ai/core): duplicate instead of using reference in json schema
|
9
|
+
- Updated dependencies [2495973]
|
10
|
+
- Updated dependencies [2495973]
|
11
|
+
- @ai-sdk/ui-utils@1.0.9
|
12
|
+
- @ai-sdk/react@1.0.10
|
13
|
+
|
3
14
|
## 4.0.33
|
4
15
|
|
5
16
|
### Patch Changes
|
package/dist/index.js
CHANGED
@@ -1961,7 +1961,7 @@ var arrayOutputStrategy = (schema) => {
|
|
1961
1961
|
// be able to generate an array directly:
|
1962
1962
|
// possible future optimization: use arrays directly when model supports grammar-guided generation
|
1963
1963
|
jsonSchema: {
|
1964
|
-
$schema: "
|
1964
|
+
$schema: "https://json-schema.org/draft/2019-09/schema#",
|
1965
1965
|
type: "object",
|
1966
1966
|
properties: {
|
1967
1967
|
elements: { type: "array", items: itemSchema }
|
@@ -2073,7 +2073,7 @@ var enumOutputStrategy = (enumValues) => {
|
|
2073
2073
|
// be able to generate an enum value directly:
|
2074
2074
|
// possible future optimization: use enums directly when model supports top-level enums
|
2075
2075
|
jsonSchema: {
|
2076
|
-
$schema: "
|
2076
|
+
$schema: "https://json-schema.org/draft/2019-09/schema#",
|
2077
2077
|
type: "object",
|
2078
2078
|
properties: {
|
2079
2079
|
result: { type: "string", enum: enumValues }
|