ai 5.0.104 → 5.0.106

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
@@ -684,7 +684,7 @@ import {
684
684
  } from "@ai-sdk/provider-utils";
685
685
 
686
686
  // src/version.ts
687
- var VERSION = true ? "5.0.104" : "0.0.0-test";
687
+ var VERSION = true ? "5.0.106" : "0.0.0-test";
688
688
 
689
689
  // src/util/download/download.ts
690
690
  var download = async ({ url }) => {
@@ -1889,7 +1889,8 @@ async function parseToolCall({
1889
1889
  input,
1890
1890
  dynamic: true,
1891
1891
  invalid: true,
1892
- error
1892
+ error,
1893
+ providerMetadata: toolCall.providerMetadata
1893
1894
  };
1894
1895
  }
1895
1896
  }
@@ -5869,7 +5870,8 @@ function convertToModelMessages(messages, options) {
5869
5870
  output: part.state === "output-error" ? part.errorText : part.output,
5870
5871
  tool: (_b = options == null ? void 0 : options.tools) == null ? void 0 : _b[toolName],
5871
5872
  errorMode: part.state === "output-error" ? "json" : "none"
5872
- })
5873
+ }),
5874
+ ...part.callProviderMetadata != null ? { providerOptions: part.callProviderMetadata } : {}
5873
5875
  });
5874
5876
  }
5875
5877
  }
@@ -5910,7 +5912,8 @@ function convertToModelMessages(messages, options) {
5910
5912
  output: toolPart.state === "output-error" ? toolPart.errorText : toolPart.output,
5911
5913
  tool: (_a17 = options == null ? void 0 : options.tools) == null ? void 0 : _a17[toolName],
5912
5914
  errorMode: toolPart.state === "output-error" ? "text" : "none"
5913
- })
5915
+ }),
5916
+ ...toolPart.callProviderMetadata != null ? { providerOptions: toolPart.callProviderMetadata } : {}
5914
5917
  };
5915
5918
  }
5916
5919
  default: {