ai 6.0.0-beta.119 → 6.0.0-beta.121
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 +17 -0
- package/dist/index.d.mts +36 -25
- package/dist/index.d.ts +36 -25
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -12
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -32,23 +32,15 @@ function formatWarning({
|
|
|
32
32
|
}) {
|
|
33
33
|
const prefix = `AI SDK Warning (${provider} / ${model}):`;
|
|
34
34
|
switch (warning.type) {
|
|
35
|
-
case "unsupported
|
|
36
|
-
let message = `${prefix} The "${warning.
|
|
35
|
+
case "unsupported": {
|
|
36
|
+
let message = `${prefix} The feature "${warning.feature}" is not supported.`;
|
|
37
37
|
if (warning.details) {
|
|
38
38
|
message += ` ${warning.details}`;
|
|
39
39
|
}
|
|
40
40
|
return message;
|
|
41
41
|
}
|
|
42
42
|
case "compatibility": {
|
|
43
|
-
let message = `${prefix} The "${warning.feature}"
|
|
44
|
-
if (warning.details) {
|
|
45
|
-
message += ` ${warning.details}`;
|
|
46
|
-
}
|
|
47
|
-
return message;
|
|
48
|
-
}
|
|
49
|
-
case "unsupported-tool": {
|
|
50
|
-
const toolName = "name" in warning.tool ? warning.tool.name : "unknown tool";
|
|
51
|
-
let message = `${prefix} The tool "${toolName}" is not supported.`;
|
|
43
|
+
let message = `${prefix} The feature "${warning.feature}" is used in a compatibility mode.`;
|
|
52
44
|
if (warning.details) {
|
|
53
45
|
message += ` ${warning.details}`;
|
|
54
46
|
}
|
|
@@ -783,7 +775,7 @@ import {
|
|
|
783
775
|
} from "@ai-sdk/provider-utils";
|
|
784
776
|
|
|
785
777
|
// src/version.ts
|
|
786
|
-
var VERSION = true ? "6.0.0-beta.
|
|
778
|
+
var VERSION = true ? "6.0.0-beta.121" : "0.0.0-test";
|
|
787
779
|
|
|
788
780
|
// src/util/download/download.ts
|
|
789
781
|
var download = async ({ url }) => {
|