ai 5.1.0-beta.19 → 5.1.0-beta.20

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/dist/index.mjs CHANGED
@@ -462,16 +462,22 @@ _a15 = symbol15;
462
462
 
463
463
  // src/model/resolve-model.ts
464
464
  function transformToV3LanguageModel(model) {
465
- return {
466
- ...model,
467
- specificationVersion: "v3"
468
- };
465
+ return new Proxy(model, {
466
+ get(target, prop) {
467
+ if (prop === "specificationVersion")
468
+ return "v3";
469
+ return target[prop];
470
+ }
471
+ });
469
472
  }
470
473
  function transformToV3EmbeddingModel(model) {
471
- return {
472
- ...model,
473
- specificationVersion: "v3"
474
- };
474
+ return new Proxy(model, {
475
+ get(target, prop) {
476
+ if (prop === "specificationVersion")
477
+ return "v3";
478
+ return target[prop];
479
+ }
480
+ });
475
481
  }
476
482
  function resolveLanguageModel(model) {
477
483
  if (typeof model !== "string") {
@@ -711,7 +717,7 @@ import {
711
717
  } from "@ai-sdk/provider-utils";
712
718
 
713
719
  // src/version.ts
714
- var VERSION = true ? "5.1.0-beta.19" : "0.0.0-test";
720
+ var VERSION = true ? "5.1.0-beta.20" : "0.0.0-test";
715
721
 
716
722
  // src/util/download/download.ts
717
723
  var download = async ({ url }) => {