ai 6.0.154 → 6.0.156
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 +13 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-ai-sdk-core/65-devtools.mdx +11 -0
- package/package.json +3 -3
- package/src/generate-text/to-response-messages.ts +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1143,7 +1143,7 @@ import {
|
|
|
1143
1143
|
} from "@ai-sdk/provider-utils";
|
|
1144
1144
|
|
|
1145
1145
|
// src/version.ts
|
|
1146
|
-
var VERSION = true ? "6.0.
|
|
1146
|
+
var VERSION = true ? "6.0.156" : "0.0.0-test";
|
|
1147
1147
|
|
|
1148
1148
|
// src/util/download/download.ts
|
|
1149
1149
|
var download = async ({
|
|
@@ -3905,7 +3905,7 @@ async function toResponseMessages({
|
|
|
3905
3905
|
type: "tool-call",
|
|
3906
3906
|
toolCallId: part.toolCallId,
|
|
3907
3907
|
toolName: part.toolName,
|
|
3908
|
-
input: part.input,
|
|
3908
|
+
input: part.invalid && typeof part.input !== "object" ? {} : part.input,
|
|
3909
3909
|
providerExecuted: part.providerExecuted,
|
|
3910
3910
|
providerOptions: part.providerMetadata
|
|
3911
3911
|
});
|