ai 5.0.79 → 5.0.80

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
+ ## 5.0.80
4
+
5
+ ### Patch Changes
6
+
7
+ - c7688ec: fix(ai): correct type field in arrayOutputStrategy from 'enum' to 'array'
8
+
3
9
  ## 5.0.79
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -764,7 +764,7 @@ function detectMediaType({
764
764
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
765
765
 
766
766
  // src/version.ts
767
- var VERSION = true ? "5.0.79" : "0.0.0-test";
767
+ var VERSION = true ? "5.0.80" : "0.0.0-test";
768
768
 
769
769
  // src/util/download/download.ts
770
770
  var download = async ({ url }) => {
@@ -6593,7 +6593,7 @@ var objectOutputStrategy = (schema) => ({
6593
6593
  var arrayOutputStrategy = (schema) => {
6594
6594
  const { $schema, ...itemSchema } = schema.jsonSchema;
6595
6595
  return {
6596
- type: "enum",
6596
+ type: "array",
6597
6597
  // wrap in object that contains array of elements, since most LLMs will not
6598
6598
  // be able to generate an array directly:
6599
6599
  // possible future optimization: use arrays directly when model supports grammar-guided generation