@ai-sdk/google 2.0.65 → 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/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.65" : "0.0.0-test";
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 {
@@ -708,11 +708,7 @@ var googleGenerativeAIProviderOptions = lazySchema4(
708
708
  /**
709
709
  * Optional. The service tier to use for the request.
710
710
  */
711
- serviceTier: z4.enum([
712
- "SERVICE_TIER_STANDARD",
713
- "SERVICE_TIER_FLEX",
714
- "SERVICE_TIER_PRIORITY"
715
- ]).optional()
711
+ serviceTier: z4.enum(["standard", "flex", "priority"]).optional()
716
712
  })
717
713
  )
718
714
  );
@@ -1634,6 +1630,12 @@ var getSafetyRatingSchema = () => z5.object({
1634
1630
  severityScore: z5.number().nullish(),
1635
1631
  blocked: z5.boolean().nullish()
1636
1632
  });
1633
+ var tokenDetailsSchema = z5.array(
1634
+ z5.object({
1635
+ modality: z5.string(),
1636
+ tokenCount: z5.number()
1637
+ })
1638
+ ).nullish();
1637
1639
  var usageSchema = z5.object({
1638
1640
  cachedContentTokenCount: z5.number().nullish(),
1639
1641
  thoughtsTokenCount: z5.number().nullish(),
@@ -1641,7 +1643,10 @@ var usageSchema = z5.object({
1641
1643
  candidatesTokenCount: z5.number().nullish(),
1642
1644
  totalTokenCount: z5.number().nullish(),
1643
1645
  // https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/GenerateContentResponse#TrafficType
1644
- trafficType: z5.string().nullish()
1646
+ trafficType: z5.string().nullish(),
1647
+ // https://ai.google.dev/api/generate-content#Modality
1648
+ promptTokensDetails: tokenDetailsSchema,
1649
+ candidatesTokensDetails: tokenDetailsSchema
1645
1650
  });
1646
1651
  var getUrlContextMetadataSchema = () => z5.object({
1647
1652
  urlMetadata: z5.array(