@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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.0-beta.55
4
+
5
+ ### Patch Changes
6
+
7
+ - db913bd: fix(google): add thought signature to gemini 3 pro image parts
8
+ - Updated dependencies [db913bd]
9
+ - @ai-sdk/provider@3.0.0-beta.17
10
+ - @ai-sdk/provider-utils@4.0.0-beta.34
11
+
3
12
  ## 3.0.0-beta.54
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -50,6 +50,7 @@ declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
50
50
  mimeType: string;
51
51
  data: string;
52
52
  };
53
+ thoughtSignature?: string | null | undefined;
53
54
  } | {
54
55
  executableCode?: {
55
56
  language: string;
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
50
50
  mimeType: string;
51
51
  data: string;
52
52
  };
53
+ thoughtSignature?: string | null | undefined;
53
54
  } | {
54
55
  executableCode?: {
55
56
  language: string;
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils13 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.0-beta.54" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.0-beta.55" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -374,11 +374,6 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
374
374
  };
375
375
  }
376
376
  case "file": {
377
- if (part.mediaType !== "image/png") {
378
- throw new import_provider2.UnsupportedFunctionalityError({
379
- functionality: "Only PNG images are supported in assistant messages"
380
- });
381
- }
382
377
  if (part.data instanceof URL) {
383
378
  throw new import_provider2.UnsupportedFunctionalityError({
384
379
  functionality: "File data URLs in assistant messages are not supported"
@@ -388,7 +383,8 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
388
383
  inlineData: {
389
384
  mimeType: part.mediaType,
390
385
  data: (0, import_provider_utils4.convertToBase64)(part.data)
391
- }
386
+ },
387
+ thoughtSignature
392
388
  };
393
389
  }
394
390
  case "tool-call": {
@@ -963,7 +959,8 @@ var GoogleGenerativeAILanguageModel = class {
963
959
  content.push({
964
960
  type: "file",
965
961
  data: part.inlineData.data,
966
- mediaType: part.inlineData.mimeType
962
+ mediaType: part.inlineData.mimeType,
963
+ providerMetadata: part.thoughtSignature ? { google: { thoughtSignature: part.thoughtSignature } } : void 0
967
964
  });
968
965
  }
969
966
  }
@@ -1379,7 +1376,8 @@ var getContentSchema = () => import_v45.z.object({
1379
1376
  inlineData: import_v45.z.object({
1380
1377
  mimeType: import_v45.z.string(),
1381
1378
  data: import_v45.z.string()
1382
- })
1379
+ }),
1380
+ thoughtSignature: import_v45.z.string().nullish()
1383
1381
  }),
1384
1382
  import_v45.z.object({
1385
1383
  executableCode: import_v45.z.object({