@ai-sdk/google 3.0.0-beta.50 → 3.0.0-beta.52
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 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +7 -5
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -5
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
10
|
+
var VERSION = true ? "3.0.0-beta.52" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-generative-ai-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -361,19 +361,20 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
|
|
|
361
361
|
contents.push({
|
|
362
362
|
role: "model",
|
|
363
363
|
parts: content.map((part) => {
|
|
364
|
-
var _a2, _b2, _c
|
|
364
|
+
var _a2, _b2, _c;
|
|
365
|
+
const thoughtSignature = ((_b2 = (_a2 = part.providerOptions) == null ? void 0 : _a2.google) == null ? void 0 : _b2.thoughtSignature) != null ? String((_c = part.providerOptions.google) == null ? void 0 : _c.thoughtSignature) : void 0;
|
|
365
366
|
switch (part.type) {
|
|
366
367
|
case "text": {
|
|
367
368
|
return part.text.length === 0 ? void 0 : {
|
|
368
369
|
text: part.text,
|
|
369
|
-
thoughtSignature
|
|
370
|
+
thoughtSignature
|
|
370
371
|
};
|
|
371
372
|
}
|
|
372
373
|
case "reasoning": {
|
|
373
374
|
return part.text.length === 0 ? void 0 : {
|
|
374
375
|
text: part.text,
|
|
375
376
|
thought: true,
|
|
376
|
-
thoughtSignature
|
|
377
|
+
thoughtSignature
|
|
377
378
|
};
|
|
378
379
|
}
|
|
379
380
|
case "file": {
|
|
@@ -400,7 +401,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
|
|
|
400
401
|
name: part.toolName,
|
|
401
402
|
args: part.input
|
|
402
403
|
},
|
|
403
|
-
thoughtSignature
|
|
404
|
+
thoughtSignature
|
|
404
405
|
};
|
|
405
406
|
}
|
|
406
407
|
}
|
|
@@ -579,7 +580,8 @@ var googleGenerativeAIProviderOptions = lazySchema4(
|
|
|
579
580
|
"9:16",
|
|
580
581
|
"16:9",
|
|
581
582
|
"21:9"
|
|
582
|
-
]).optional()
|
|
583
|
+
]).optional(),
|
|
584
|
+
imageSize: z4.enum(["1K", "2K", "4K"]).optional()
|
|
583
585
|
}).optional()
|
|
584
586
|
})
|
|
585
587
|
)
|