ai 6.0.244 → 6.0.246

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.246
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ee2bf30]
8
+ - @ai-sdk/provider-utils@4.0.42
9
+ - @ai-sdk/gateway@3.0.166
10
+
11
+ ## 6.0.245
12
+
13
+ ### Patch Changes
14
+
15
+ - 0de0715: Filter unresolved tool approval requests and tool parts without state when ignoring incomplete tool calls.
16
+
3
17
  ## 6.0.244
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1304,7 +1304,7 @@ function detectMediaType({
1304
1304
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
1305
1305
 
1306
1306
  // src/version.ts
1307
- var VERSION = true ? "6.0.244" : "0.0.0-test";
1307
+ var VERSION = true ? "6.0.246" : "0.0.0-test";
1308
1308
 
1309
1309
  // src/util/download/download.ts
1310
1310
  var download = async ({
@@ -9067,7 +9067,7 @@ async function convertToModelMessages(messages, options) {
9067
9067
  messages = messages.map((message) => ({
9068
9068
  ...message,
9069
9069
  parts: message.parts.filter(
9070
- (part) => !isToolUIPart(part) || part.state !== "input-streaming" && part.state !== "input-available"
9070
+ (part) => !isToolUIPart(part) || part.state === "approval-responded" || part.state === "output-available" || part.state === "output-error" || part.state === "output-denied"
9071
9071
  )
9072
9072
  }));
9073
9073
  }