ai 6.0.167 → 6.0.169

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/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.167" : "0.0.0-test";
1146
+ var VERSION = true ? "6.0.169" : "0.0.0-test";
1147
1147
 
1148
1148
  // src/util/download/download.ts
1149
1149
  var download = async ({
@@ -8882,6 +8882,9 @@ async function safeValidateUIMessages({
8882
8882
  const toolPart = part;
8883
8883
  const toolName = toolPart.type.slice(5);
8884
8884
  const tool2 = tools[toolName];
8885
+ if (!tool2 && (toolPart.state === "output-available" || toolPart.state === "output-error" || toolPart.state === "output-denied")) {
8886
+ continue;
8887
+ }
8885
8888
  if (!tool2) {
8886
8889
  return {
8887
8890
  success: false,