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/CHANGELOG.md +12 -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/package.json +4 -3
- package/src/prompt/prepare-tools-and-tool-choice.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.324
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ba3743f: Preserve `toolChoice: 'none'` when SDK tools are omitted or empty so providers can disable native tools configured through provider options.
|
|
8
|
+
|
|
9
|
+
For Perplexity native tools, also update `@ai-sdk/perplexity` to `3.1.10` or a later compatible version, which includes the provider-side guard.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [fbb8489]
|
|
12
|
+
- Updated dependencies [26b7351]
|
|
13
|
+
- @ai-sdk/gateway@3.0.230
|
|
14
|
+
|
|
3
15
|
## 6.0.323
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1335,7 +1335,7 @@ function detectMediaType({
|
|
|
1335
1335
|
var import_provider_utils3 = require("@ai-sdk/provider-utils");
|
|
1336
1336
|
|
|
1337
1337
|
// src/version.ts
|
|
1338
|
-
var VERSION = true ? "6.0.
|
|
1338
|
+
var VERSION = true ? "6.0.324" : "0.0.0-test";
|
|
1339
1339
|
|
|
1340
1340
|
// src/util/download/download.ts
|
|
1341
1341
|
var download = async ({
|
|
@@ -2059,7 +2059,8 @@ async function prepareToolsAndToolChoice({
|
|
|
2059
2059
|
if (!isNonEmptyObject(tools)) {
|
|
2060
2060
|
return {
|
|
2061
2061
|
tools: void 0,
|
|
2062
|
-
|
|
2062
|
+
// Providers can configure native tools without SDK tools.
|
|
2063
|
+
toolChoice: toolChoice === "none" ? { type: "none" } : void 0
|
|
2063
2064
|
};
|
|
2064
2065
|
}
|
|
2065
2066
|
const filteredTools = activeTools != null ? Object.entries(tools).filter(
|