ai 6.0.333 → 6.0.336
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 +32 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/02-foundations/02-providers-and-models.mdx +1 -0
- package/docs/03-ai-sdk-core/36-transcription.mdx +2 -2
- package/docs/03-ai-sdk-core/37-speech.mdx +1 -0
- package/package.json +4 -4
- package/src/telemetry/redact-tool-definition.ts +14 -0
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.336" : "0.0.0-test";
|
|
1229
1229
|
|
|
1230
1230
|
// src/util/download/download.ts
|
|
1231
1231
|
var download = async ({
|
|
@@ -2601,6 +2601,19 @@ function redactToolDefinition(tool2) {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
|
+
if (tool2.id === "google.mcp_server") {
|
|
2605
|
+
if (!isRecord(args.headers))
|
|
2606
|
+
return tool2;
|
|
2607
|
+
return {
|
|
2608
|
+
...tool2,
|
|
2609
|
+
args: {
|
|
2610
|
+
...args,
|
|
2611
|
+
headers: Object.fromEntries(
|
|
2612
|
+
Object.keys(args.headers).map((name23) => [name23, "[redacted]"])
|
|
2613
|
+
)
|
|
2614
|
+
}
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2604
2617
|
const containerKey = tool2.id === "openai.code_interpreter" ? "container" : tool2.id === "openai.shell" ? "environment" : void 0;
|
|
2605
2618
|
if (containerKey == null)
|
|
2606
2619
|
return tool2;
|