ai 6.0.154 → 6.0.156

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
@@ -1143,7 +1143,7 @@ import {
1143
1143
  } from "@ai-sdk/provider-utils";
1144
1144
 
1145
1145
  // src/version.ts
1146
- var VERSION = true ? "6.0.154" : "0.0.0-test";
1146
+ var VERSION = true ? "6.0.156" : "0.0.0-test";
1147
1147
 
1148
1148
  // src/util/download/download.ts
1149
1149
  var download = async ({
@@ -3905,7 +3905,7 @@ async function toResponseMessages({
3905
3905
  type: "tool-call",
3906
3906
  toolCallId: part.toolCallId,
3907
3907
  toolName: part.toolName,
3908
- input: part.input,
3908
+ input: part.invalid && typeof part.input !== "object" ? {} : part.input,
3909
3909
  providerExecuted: part.providerExecuted,
3910
3910
  providerOptions: part.providerMetadata
3911
3911
  });