@ai-sdk/google 3.0.24 → 3.0.25

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
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "3.0.24" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.25" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -53,7 +53,7 @@ import {
53
53
  zodSchema as zodSchema2
54
54
  } from "@ai-sdk/provider-utils";
55
55
  import { z as z2 } from "zod/v4";
56
- var googleGenerativeAIEmbeddingProviderOptions = lazySchema2(
56
+ var googleEmbeddingModelOptions = lazySchema2(
57
57
  () => zodSchema2(
58
58
  z2.object({
59
59
  /**
@@ -108,7 +108,7 @@ var GoogleGenerativeAIEmbeddingModel = class {
108
108
  const googleOptions = await parseProviderOptions({
109
109
  provider: "google",
110
110
  providerOptions,
111
- schema: googleGenerativeAIEmbeddingProviderOptions
111
+ schema: googleEmbeddingModelOptions
112
112
  });
113
113
  if (values.length > this.maxEmbeddingsPerCall) {
114
114
  throw new TooManyEmbeddingValuesForCallError({
@@ -548,7 +548,7 @@ function getModelPath(modelId) {
548
548
  // src/google-generative-ai-options.ts
549
549
  import { lazySchema as lazySchema4, zodSchema as zodSchema4 } from "@ai-sdk/provider-utils";
550
550
  import { z as z4 } from "zod/v4";
551
- var googleGenerativeAIProviderOptions = lazySchema4(
551
+ var googleLanguageModelOptions = lazySchema4(
552
552
  () => zodSchema4(
553
553
  z4.object({
554
554
  responseModalities: z4.array(z4.enum(["TEXT", "IMAGE"])).optional(),
@@ -932,13 +932,13 @@ var GoogleGenerativeAILanguageModel = class {
932
932
  let googleOptions = await parseProviderOptions2({
933
933
  provider: providerOptionsName,
934
934
  providerOptions,
935
- schema: googleGenerativeAIProviderOptions
935
+ schema: googleLanguageModelOptions
936
936
  });
937
937
  if (googleOptions == null && providerOptionsName !== "google") {
938
938
  googleOptions = await parseProviderOptions2({
939
939
  provider: "google",
940
940
  providerOptions,
941
- schema: googleGenerativeAIProviderOptions
941
+ schema: googleLanguageModelOptions
942
942
  });
943
943
  }
944
944
  if ((tools == null ? void 0 : tools.some(
@@ -1870,7 +1870,7 @@ var GoogleGenerativeAIImageModel = class {
1870
1870
  const googleOptions = await parseProviderOptions3({
1871
1871
  provider: "google",
1872
1872
  providerOptions,
1873
- schema: googleImageProviderOptionsSchema
1873
+ schema: googleImageModelOptionsSchema
1874
1874
  });
1875
1875
  const currentDate = (_c = (_b = (_a = this.config._internal) == null ? void 0 : _a.currentDate) == null ? void 0 : _b.call(_a)) != null ? _c : /* @__PURE__ */ new Date();
1876
1876
  const parameters = {
@@ -1924,7 +1924,7 @@ var googleImageResponseSchema = lazySchema11(
1924
1924
  })
1925
1925
  )
1926
1926
  );
1927
- var googleImageProviderOptionsSchema = lazySchema11(
1927
+ var googleImageModelOptionsSchema = lazySchema11(
1928
1928
  () => zodSchema11(
1929
1929
  z13.object({
1930
1930
  personGeneration: z13.enum(["dont_allow", "allow_adult", "allow_all"]).nullish(),
@@ -1969,7 +1969,7 @@ var GoogleGenerativeAIVideoModel = class {
1969
1969
  const googleOptions = await parseProviderOptions4({
1970
1970
  provider: "google",
1971
1971
  providerOptions: options.providerOptions,
1972
- schema: googleVideoProviderOptionsSchema
1972
+ schema: googleVideoModelOptionsSchema
1973
1973
  });
1974
1974
  const instances = [{}];
1975
1975
  const instance = instances[0];
@@ -2181,7 +2181,7 @@ var googleOperationSchema = z14.object({
2181
2181
  }).nullish()
2182
2182
  }).nullish()
2183
2183
  });
2184
- var googleVideoProviderOptionsSchema = lazySchema12(
2184
+ var googleVideoModelOptionsSchema = lazySchema12(
2185
2185
  () => zodSchema12(
2186
2186
  z14.object({
2187
2187
  pollIntervalMs: z14.number().positive().nullish(),