ai 6.0.0-beta.127 → 6.0.0-beta.129
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 +13 -0
- package/dist/index.js +39 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -430,11 +430,33 @@ var RetryError = class extends AISDKError15 {
|
|
|
430
430
|
};
|
|
431
431
|
_a13 = symbol13;
|
|
432
432
|
|
|
433
|
+
// src/util/log-v2-compatibility-warning.ts
|
|
434
|
+
function logV2CompatibilityWarning({
|
|
435
|
+
provider,
|
|
436
|
+
modelId
|
|
437
|
+
}) {
|
|
438
|
+
logWarnings({
|
|
439
|
+
warnings: [
|
|
440
|
+
{
|
|
441
|
+
type: "compatibility",
|
|
442
|
+
feature: "specificationVersion",
|
|
443
|
+
details: `Using v2 specification compatibility mode. Some features may not be available.`
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
provider,
|
|
447
|
+
model: modelId
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
|
|
433
451
|
// src/model/as-embedding-model-v3.ts
|
|
434
452
|
function asEmbeddingModelV3(model) {
|
|
435
453
|
if (model.specificationVersion === "v3") {
|
|
436
454
|
return model;
|
|
437
455
|
}
|
|
456
|
+
logV2CompatibilityWarning({
|
|
457
|
+
provider: model.provider,
|
|
458
|
+
modelId: model.modelId
|
|
459
|
+
});
|
|
438
460
|
return new Proxy(model, {
|
|
439
461
|
get(target, prop) {
|
|
440
462
|
if (prop === "specificationVersion")
|
|
@@ -449,6 +471,10 @@ function asImageModelV3(model) {
|
|
|
449
471
|
if (model.specificationVersion === "v3") {
|
|
450
472
|
return model;
|
|
451
473
|
}
|
|
474
|
+
logV2CompatibilityWarning({
|
|
475
|
+
provider: model.provider,
|
|
476
|
+
modelId: model.modelId
|
|
477
|
+
});
|
|
452
478
|
return new Proxy(model, {
|
|
453
479
|
get(target, prop) {
|
|
454
480
|
if (prop === "specificationVersion")
|
|
@@ -463,6 +489,10 @@ function asLanguageModelV3(model) {
|
|
|
463
489
|
if (model.specificationVersion === "v3") {
|
|
464
490
|
return model;
|
|
465
491
|
}
|
|
492
|
+
logV2CompatibilityWarning({
|
|
493
|
+
provider: model.provider,
|
|
494
|
+
modelId: model.modelId
|
|
495
|
+
});
|
|
466
496
|
return new Proxy(model, {
|
|
467
497
|
get(target, prop) {
|
|
468
498
|
if (prop === "specificationVersion")
|
|
@@ -477,6 +507,10 @@ function asSpeechModelV3(model) {
|
|
|
477
507
|
if (model.specificationVersion === "v3") {
|
|
478
508
|
return model;
|
|
479
509
|
}
|
|
510
|
+
logV2CompatibilityWarning({
|
|
511
|
+
provider: model.provider,
|
|
512
|
+
modelId: model.modelId
|
|
513
|
+
});
|
|
480
514
|
return new Proxy(model, {
|
|
481
515
|
get(target, prop) {
|
|
482
516
|
if (prop === "specificationVersion")
|
|
@@ -491,6 +525,10 @@ function asTranscriptionModelV3(model) {
|
|
|
491
525
|
if (model.specificationVersion === "v3") {
|
|
492
526
|
return model;
|
|
493
527
|
}
|
|
528
|
+
logV2CompatibilityWarning({
|
|
529
|
+
provider: model.provider,
|
|
530
|
+
modelId: model.modelId
|
|
531
|
+
});
|
|
494
532
|
return new Proxy(model, {
|
|
495
533
|
get(target, prop) {
|
|
496
534
|
if (prop === "specificationVersion")
|
|
@@ -775,7 +813,7 @@ import {
|
|
|
775
813
|
} from "@ai-sdk/provider-utils";
|
|
776
814
|
|
|
777
815
|
// src/version.ts
|
|
778
|
-
var VERSION = true ? "6.0.0-beta.
|
|
816
|
+
var VERSION = true ? "6.0.0-beta.129" : "0.0.0-test";
|
|
779
817
|
|
|
780
818
|
// src/util/download/download.ts
|
|
781
819
|
var download = async ({ url }) => {
|