@ai-sdk/google 3.0.36 → 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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +21 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +21 -1
- package/dist/internal/index.mjs.map +1 -1
- package/docs/15-google-generative-ai.mdx +1 -0
- package/package.json +1 -1
- package/src/google-generative-ai-language-model.ts +25 -0
- package/src/google-generative-ai-options.ts +1 -0
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.
|
|
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
|
}
|