ai 6.0.322 → 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/CHANGELOG.md +20 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +3 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -2
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-ai-sdk-core/40-middleware.mdx +7 -2
- package/docs/06-advanced/04-caching.mdx +13 -4
- package/package.json +4 -3
- package/src/prompt/prepare-tools-and-tool-choice.ts +2 -1
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.
|
|
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
|
-
|
|
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(
|