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/dist/index.mjs CHANGED
@@ -671,7 +671,7 @@ import {
671
671
  } from "@ai-sdk/provider-utils";
672
672
 
673
673
  // src/version.ts
674
- var VERSION = true ? "5.0.79" : "0.0.0-test";
674
+ var VERSION = true ? "5.0.80" : "0.0.0-test";
675
675
 
676
676
  // src/util/download/download.ts
677
677
  var download = async ({ url }) => {
@@ -6537,7 +6537,7 @@ var objectOutputStrategy = (schema) => ({
6537
6537
  var arrayOutputStrategy = (schema) => {
6538
6538
  const { $schema, ...itemSchema } = schema.jsonSchema;
6539
6539
  return {
6540
- type: "enum",
6540
+ type: "array",
6541
6541
  // wrap in object that contains array of elements, since most LLMs will not
6542
6542
  // be able to generate an array directly:
6543
6543
  // possible future optimization: use arrays directly when model supports grammar-guided generation