ai 6.0.0-beta.125 → 6.0.0-beta.126
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 +6 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -775,7 +775,7 @@ import {
|
|
|
775
775
|
} from "@ai-sdk/provider-utils";
|
|
776
776
|
|
|
777
777
|
// src/version.ts
|
|
778
|
-
var VERSION = true ? "6.0.0-beta.
|
|
778
|
+
var VERSION = true ? "6.0.0-beta.126" : "0.0.0-test";
|
|
779
779
|
|
|
780
780
|
// src/util/download/download.ts
|
|
781
781
|
var download = async ({ url }) => {
|
|
@@ -2937,7 +2937,9 @@ async function parseToolCall({
|
|
|
2937
2937
|
dynamic: true,
|
|
2938
2938
|
invalid: true,
|
|
2939
2939
|
error,
|
|
2940
|
-
title: (_a15 = tools == null ? void 0 : tools[toolCall.toolName]) == null ? void 0 : _a15.title
|
|
2940
|
+
title: (_a15 = tools == null ? void 0 : tools[toolCall.toolName]) == null ? void 0 : _a15.title,
|
|
2941
|
+
providerExecuted: toolCall.providerExecuted,
|
|
2942
|
+
providerMetadata: toolCall.providerMetadata
|
|
2941
2943
|
};
|
|
2942
2944
|
}
|
|
2943
2945
|
}
|
|
@@ -6903,7 +6905,8 @@ function convertToModelMessages(messages, options) {
|
|
|
6903
6905
|
output: part.state === "output-error" ? part.errorText : part.output,
|
|
6904
6906
|
tool: (_b = options == null ? void 0 : options.tools) == null ? void 0 : _b[toolName],
|
|
6905
6907
|
errorMode: part.state === "output-error" ? "json" : "none"
|
|
6906
|
-
})
|
|
6908
|
+
}),
|
|
6909
|
+
...part.callProviderMetadata != null ? { providerOptions: part.callProviderMetadata } : {}
|
|
6907
6910
|
});
|
|
6908
6911
|
}
|
|
6909
6912
|
}
|