ai 6.0.0-beta.151 → 6.0.0-beta.152

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
@@ -866,7 +866,7 @@ import {
866
866
  } from "@ai-sdk/provider-utils";
867
867
 
868
868
  // src/version.ts
869
- var VERSION = true ? "6.0.0-beta.151" : "0.0.0-test";
869
+ var VERSION = true ? "6.0.0-beta.152" : "0.0.0-test";
870
870
 
871
871
  // src/util/download/download.ts
872
872
  var download = async ({ url }) => {
@@ -1290,7 +1290,7 @@ function createToolModelOutput({
1290
1290
  return { type: "error-json", value: toJSONValue(output) };
1291
1291
  }
1292
1292
  if (tool2 == null ? void 0 : tool2.toModelOutput) {
1293
- return tool2.toModelOutput(output);
1293
+ return tool2.toModelOutput({ output });
1294
1294
  }
1295
1295
  return typeof output === "string" ? { type: "text", value: output } : { type: "json", value: toJSONValue(output) };
1296
1296
  }