ai 6.0.153 → 6.0.155
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 +2 -2
- package/src/generate-text/to-response-messages.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.155
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 06764c5: fix(ai): skip passing invalid JSON inputs to response messages
|
|
8
|
+
|
|
9
|
+
## 6.0.154
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [37a378e]
|
|
14
|
+
- @ai-sdk/gateway@3.0.94
|
|
15
|
+
|
|
3
16
|
## 6.0.153
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1252,7 +1252,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
|
|
|
1252
1252
|
var import_provider_utils4 = require("@ai-sdk/provider-utils");
|
|
1253
1253
|
|
|
1254
1254
|
// src/version.ts
|
|
1255
|
-
var VERSION = true ? "6.0.
|
|
1255
|
+
var VERSION = true ? "6.0.155" : "0.0.0-test";
|
|
1256
1256
|
|
|
1257
1257
|
// src/util/download/download.ts
|
|
1258
1258
|
var download = async ({
|
|
@@ -3992,7 +3992,7 @@ async function toResponseMessages({
|
|
|
3992
3992
|
type: "tool-call",
|
|
3993
3993
|
toolCallId: part.toolCallId,
|
|
3994
3994
|
toolName: part.toolName,
|
|
3995
|
-
input: part.input,
|
|
3995
|
+
input: part.invalid && typeof part.input !== "object" ? {} : part.input,
|
|
3996
3996
|
providerExecuted: part.providerExecuted,
|
|
3997
3997
|
providerOptions: part.providerMetadata
|
|
3998
3998
|
});
|