ai 6.0.0-beta.72 → 6.0.0-beta.73

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.0-beta.73
4
+
5
+ ### Patch Changes
6
+
7
+ - 754df61: fix(ai): correct type field in arrayOutputStrategy from 'enum' to 'array'
8
+
3
9
  ## 6.0.0-beta.72
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -849,7 +849,7 @@ function detectMediaType({
849
849
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
850
850
 
851
851
  // src/version.ts
852
- var VERSION = true ? "6.0.0-beta.72" : "0.0.0-test";
852
+ var VERSION = true ? "6.0.0-beta.73" : "0.0.0-test";
853
853
 
854
854
  // src/util/download/download.ts
855
855
  var download = async ({ url }) => {
@@ -7697,7 +7697,7 @@ var objectOutputStrategy = (schema) => ({
7697
7697
  });
7698
7698
  var arrayOutputStrategy = (schema) => {
7699
7699
  return {
7700
- type: "enum",
7700
+ type: "array",
7701
7701
  // wrap in object that contains array of elements, since most LLMs will not
7702
7702
  // be able to generate an array directly:
7703
7703
  // possible future optimization: use arrays directly when model supports grammar-guided generation