ai 6.0.198 → 6.0.199
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 +9 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/02-foundations/02-providers-and-models.mdx +1 -0
- package/package.json +2 -2
- package/src/ui/convert-to-model-messages.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1144,7 +1144,7 @@ import {
|
|
|
1144
1144
|
} from "@ai-sdk/provider-utils";
|
|
1145
1145
|
|
|
1146
1146
|
// src/version.ts
|
|
1147
|
-
var VERSION = true ? "6.0.
|
|
1147
|
+
var VERSION = true ? "6.0.199" : "0.0.0-test";
|
|
1148
1148
|
|
|
1149
1149
|
// src/util/download/download.ts
|
|
1150
1150
|
var download = async ({
|
|
@@ -8518,7 +8518,7 @@ async function convertToModelMessages(messages, options) {
|
|
|
8518
8518
|
if (message.parts != null) {
|
|
8519
8519
|
let block = [];
|
|
8520
8520
|
async function processBlock() {
|
|
8521
|
-
var _a21, _b, _c, _d, _e, _f, _g;
|
|
8521
|
+
var _a21, _b, _c, _d, _e, _f, _g, _h;
|
|
8522
8522
|
if (block.length === 0) {
|
|
8523
8523
|
return;
|
|
8524
8524
|
}
|
|
@@ -8626,7 +8626,7 @@ async function convertToModelMessages(messages, options) {
|
|
|
8626
8626
|
toolName: getToolName(toolPart),
|
|
8627
8627
|
output: {
|
|
8628
8628
|
type: "error-text",
|
|
8629
|
-
value: (_f = toolPart.approval.reason) != null ?
|
|
8629
|
+
value: (_g = (_f = toolPart.approval) == null ? void 0 : _f.reason) != null ? _g : "Tool execution denied."
|
|
8630
8630
|
},
|
|
8631
8631
|
...toolPart.callProviderMetadata != null ? { providerOptions: toolPart.callProviderMetadata } : {}
|
|
8632
8632
|
});
|
|
@@ -8643,7 +8643,7 @@ async function convertToModelMessages(messages, options) {
|
|
|
8643
8643
|
toolCallId: toolPart.toolCallId,
|
|
8644
8644
|
input: toolPart.input,
|
|
8645
8645
|
output: toolPart.state === "output-error" ? toolPart.errorText : toolPart.output,
|
|
8646
|
-
tool: (
|
|
8646
|
+
tool: (_h = options == null ? void 0 : options.tools) == null ? void 0 : _h[toolName],
|
|
8647
8647
|
errorMode: toolPart.state === "output-error" ? "text" : "none"
|
|
8648
8648
|
}),
|
|
8649
8649
|
...toolPart.callProviderMetadata != null ? { providerOptions: toolPart.callProviderMetadata } : {}
|