@ai-sdk/google 2.0.66 → 2.0.67
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 +6 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +8 -0
- package/dist/internal/index.d.ts +8 -0
- package/dist/internal/index.js +10 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +10 -1
- 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 ? "2.0.
|
|
10
|
+
var VERSION = true ? "2.0.67" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-generative-ai-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -1630,6 +1630,12 @@ var getSafetyRatingSchema = () => z5.object({
|
|
|
1630
1630
|
severityScore: z5.number().nullish(),
|
|
1631
1631
|
blocked: z5.boolean().nullish()
|
|
1632
1632
|
});
|
|
1633
|
+
var tokenDetailsSchema = z5.array(
|
|
1634
|
+
z5.object({
|
|
1635
|
+
modality: z5.string(),
|
|
1636
|
+
tokenCount: z5.number()
|
|
1637
|
+
})
|
|
1638
|
+
).nullish();
|
|
1633
1639
|
var usageSchema = z5.object({
|
|
1634
1640
|
cachedContentTokenCount: z5.number().nullish(),
|
|
1635
1641
|
thoughtsTokenCount: z5.number().nullish(),
|
|
@@ -1637,7 +1643,10 @@ var usageSchema = z5.object({
|
|
|
1637
1643
|
candidatesTokenCount: z5.number().nullish(),
|
|
1638
1644
|
totalTokenCount: z5.number().nullish(),
|
|
1639
1645
|
// https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/GenerateContentResponse#TrafficType
|
|
1640
|
-
trafficType: z5.string().nullish()
|
|
1646
|
+
trafficType: z5.string().nullish(),
|
|
1647
|
+
// https://ai.google.dev/api/generate-content#Modality
|
|
1648
|
+
promptTokensDetails: tokenDetailsSchema,
|
|
1649
|
+
candidatesTokensDetails: tokenDetailsSchema
|
|
1641
1650
|
});
|
|
1642
1651
|
var getUrlContextMetadataSchema = () => z5.object({
|
|
1643
1652
|
urlMetadata: z5.array(
|