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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -870,7 +870,7 @@ function detectMediaType({
|
|
|
870
870
|
var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
871
871
|
|
|
872
872
|
// src/version.ts
|
|
873
|
-
var VERSION = true ? "6.0.0-beta.
|
|
873
|
+
var VERSION = true ? "6.0.0-beta.126" : "0.0.0-test";
|
|
874
874
|
|
|
875
875
|
// src/util/download/download.ts
|
|
876
876
|
var download = async ({ url }) => {
|
|
@@ -3010,7 +3010,9 @@ async function parseToolCall({
|
|
|
3010
3010
|
dynamic: true,
|
|
3011
3011
|
invalid: true,
|
|
3012
3012
|
error,
|
|
3013
|
-
title: (_a15 = tools == null ? void 0 : tools[toolCall.toolName]) == null ? void 0 : _a15.title
|
|
3013
|
+
title: (_a15 = tools == null ? void 0 : tools[toolCall.toolName]) == null ? void 0 : _a15.title,
|
|
3014
|
+
providerExecuted: toolCall.providerExecuted,
|
|
3015
|
+
providerMetadata: toolCall.providerMetadata
|
|
3014
3016
|
};
|
|
3015
3017
|
}
|
|
3016
3018
|
}
|
|
@@ -6963,7 +6965,8 @@ function convertToModelMessages(messages, options) {
|
|
|
6963
6965
|
output: part.state === "output-error" ? part.errorText : part.output,
|
|
6964
6966
|
tool: (_b = options == null ? void 0 : options.tools) == null ? void 0 : _b[toolName],
|
|
6965
6967
|
errorMode: part.state === "output-error" ? "json" : "none"
|
|
6966
|
-
})
|
|
6968
|
+
}),
|
|
6969
|
+
...part.callProviderMetadata != null ? { providerOptions: part.callProviderMetadata } : {}
|
|
6967
6970
|
});
|
|
6968
6971
|
}
|
|
6969
6972
|
}
|