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/CHANGELOG.md +20 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-agents/05-configuring-call-options.mdx +1 -1
- package/docs/03-ai-sdk-core/30-embeddings.mdx +8 -18
- package/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +0 -1
- package/package.json +7 -6
- package/src/ui/validate-ui-messages.ts +9 -0
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.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,
|