ai 6.0.323 → 6.0.324

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
@@ -1225,7 +1225,7 @@ import {
1225
1225
  } from "@ai-sdk/provider-utils";
1226
1226
 
1227
1227
  // src/version.ts
1228
- var VERSION = true ? "6.0.323" : "0.0.0-test";
1228
+ var VERSION = true ? "6.0.324" : "0.0.0-test";
1229
1229
 
1230
1230
  // src/util/download/download.ts
1231
1231
  var download = async ({
@@ -1954,7 +1954,8 @@ async function prepareToolsAndToolChoice({
1954
1954
  if (!isNonEmptyObject(tools)) {
1955
1955
  return {
1956
1956
  tools: void 0,
1957
- toolChoice: void 0
1957
+ // Providers can configure native tools without SDK tools.
1958
+ toolChoice: toolChoice === "none" ? { type: "none" } : void 0
1958
1959
  };
1959
1960
  }
1960
1961
  const filteredTools = activeTools != null ? Object.entries(tools).filter(