@ai-sdk/google 3.0.37 → 3.0.38

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.37" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.38" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -1299,10 +1299,30 @@ var GoogleGenerativeAILanguageModel = class {
1299
1299
  });
1300
1300
  }
1301
1301
  } else if ("inlineData" in part) {
1302
+ if (currentTextBlockId !== null) {
1303
+ controller.enqueue({
1304
+ type: "text-end",
1305
+ id: currentTextBlockId
1306
+ });
1307
+ currentTextBlockId = null;
1308
+ }
1309
+ if (currentReasoningBlockId !== null) {
1310
+ controller.enqueue({
1311
+ type: "reasoning-end",
1312
+ id: currentReasoningBlockId
1313
+ });
1314
+ currentReasoningBlockId = null;
1315
+ }
1316
+ const thoughtSignatureMetadata = part.thoughtSignature ? {
1317
+ [providerOptionsName]: {
1318
+ thoughtSignature: part.thoughtSignature
1319
+ }
1320
+ } : void 0;
1302
1321
  controller.enqueue({
1303
1322
  type: "file",
1304
1323
  mediaType: part.inlineData.mimeType,
1305
- data: part.inlineData.data
1324
+ data: part.inlineData.data,
1325
+ providerMetadata: thoughtSignatureMetadata
1306
1326
  });
1307
1327
  }
1308
1328
  }