ai 5.0.180 → 5.0.182

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
@@ -681,15 +681,13 @@ function detectMediaType({
681
681
  import {
682
682
  readResponseWithSizeLimit,
683
683
  DEFAULT_MAX_DOWNLOAD_SIZE,
684
- validateDownloadUrl
685
- } from "@ai-sdk/provider-utils";
686
- import {
684
+ validateDownloadUrl,
687
685
  withUserAgentSuffix,
688
686
  getRuntimeEnvironmentUserAgent
689
687
  } from "@ai-sdk/provider-utils";
690
688
 
691
689
  // src/version.ts
692
- var VERSION = true ? "5.0.180" : "0.0.0-test";
690
+ var VERSION = true ? "5.0.182" : "0.0.0-test";
693
691
 
694
692
  // src/util/download/download.ts
695
693
  var download = async ({
@@ -1574,7 +1572,9 @@ function getTracer({
1574
1572
  }
1575
1573
 
1576
1574
  // src/telemetry/record-span.ts
1577
- import { SpanStatusCode } from "@opentelemetry/api";
1575
+ import {
1576
+ SpanStatusCode
1577
+ } from "@opentelemetry/api";
1578
1578
  function recordSpan({
1579
1579
  name: name16,
1580
1580
  tracer,
@@ -3075,6 +3075,9 @@ function mergeObjects(base, overrides) {
3075
3075
  }
3076
3076
  const result = { ...base };
3077
3077
  for (const key in overrides) {
3078
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
3079
+ continue;
3080
+ }
3078
3081
  if (Object.prototype.hasOwnProperty.call(overrides, key)) {
3079
3082
  const overridesValue = overrides[key];
3080
3083
  if (overridesValue === void 0)
@@ -6014,7 +6017,9 @@ var Agent = class {
6014
6017
  };
6015
6018
 
6016
6019
  // src/embed/embed.ts
6017
- import { withUserAgentSuffix as withUserAgentSuffix3 } from "@ai-sdk/provider-utils";
6020
+ import {
6021
+ withUserAgentSuffix as withUserAgentSuffix3
6022
+ } from "@ai-sdk/provider-utils";
6018
6023
  async function embed({
6019
6024
  model: modelArg,
6020
6025
  value,
@@ -6133,7 +6138,9 @@ var DefaultEmbedResult = class {
6133
6138
  };
6134
6139
 
6135
6140
  // src/embed/embed-many.ts
6136
- import { withUserAgentSuffix as withUserAgentSuffix4 } from "@ai-sdk/provider-utils";
6141
+ import {
6142
+ withUserAgentSuffix as withUserAgentSuffix4
6143
+ } from "@ai-sdk/provider-utils";
6137
6144
 
6138
6145
  // src/util/split-array.ts
6139
6146
  function splitArray(array, chunkSize) {
@@ -6382,7 +6389,9 @@ var DefaultEmbedManyResult = class {
6382
6389
  };
6383
6390
 
6384
6391
  // src/generate-image/generate-image.ts
6385
- import { withUserAgentSuffix as withUserAgentSuffix5 } from "@ai-sdk/provider-utils";
6392
+ import {
6393
+ withUserAgentSuffix as withUserAgentSuffix5
6394
+ } from "@ai-sdk/provider-utils";
6386
6395
  async function generateImage({
6387
6396
  model: modelArg,
6388
6397
  prompt,
@@ -7891,7 +7900,9 @@ var DefaultStreamObjectResult = class {
7891
7900
  };
7892
7901
 
7893
7902
  // src/generate-speech/generate-speech.ts
7894
- import { withUserAgentSuffix as withUserAgentSuffix7 } from "@ai-sdk/provider-utils";
7903
+ import {
7904
+ withUserAgentSuffix as withUserAgentSuffix7
7905
+ } from "@ai-sdk/provider-utils";
7895
7906
 
7896
7907
  // src/generate-speech/generated-audio-file.ts
7897
7908
  var DefaultGeneratedAudioFile = class extends DefaultGeneratedFile {
@@ -8753,7 +8764,9 @@ var DefaultProviderRegistry = class {
8753
8764
  };
8754
8765
 
8755
8766
  // src/transcribe/transcribe.ts
8756
- import { withUserAgentSuffix as withUserAgentSuffix8 } from "@ai-sdk/provider-utils";
8767
+ import {
8768
+ withUserAgentSuffix as withUserAgentSuffix8
8769
+ } from "@ai-sdk/provider-utils";
8757
8770
 
8758
8771
  // src/error/no-transcript-generated-error.ts
8759
8772
  import { AISDKError as AISDKError21 } from "@ai-sdk/provider";