@ai-sdk/google 3.0.0-beta.54 → 3.0.0-beta.55

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.0-beta.54" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.0-beta.55" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -380,11 +380,6 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
380
380
  };
381
381
  }
382
382
  case "file": {
383
- if (part.mediaType !== "image/png") {
384
- throw new UnsupportedFunctionalityError({
385
- functionality: "Only PNG images are supported in assistant messages"
386
- });
387
- }
388
383
  if (part.data instanceof URL) {
389
384
  throw new UnsupportedFunctionalityError({
390
385
  functionality: "File data URLs in assistant messages are not supported"
@@ -394,7 +389,8 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
394
389
  inlineData: {
395
390
  mimeType: part.mediaType,
396
391
  data: convertToBase64(part.data)
397
- }
392
+ },
393
+ thoughtSignature
398
394
  };
399
395
  }
400
396
  case "tool-call": {
@@ -971,7 +967,8 @@ var GoogleGenerativeAILanguageModel = class {
971
967
  content.push({
972
968
  type: "file",
973
969
  data: part.inlineData.data,
974
- mediaType: part.inlineData.mimeType
970
+ mediaType: part.inlineData.mimeType,
971
+ providerMetadata: part.thoughtSignature ? { google: { thoughtSignature: part.thoughtSignature } } : void 0
975
972
  });
976
973
  }
977
974
  }
@@ -1387,7 +1384,8 @@ var getContentSchema = () => z5.object({
1387
1384
  inlineData: z5.object({
1388
1385
  mimeType: z5.string(),
1389
1386
  data: z5.string()
1390
- })
1387
+ }),
1388
+ thoughtSignature: z5.string().nullish()
1391
1389
  }),
1392
1390
  z5.object({
1393
1391
  executableCode: z5.object({