@google/genai 1.47.0 → 1.48.0

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.
@@ -1576,19 +1576,19 @@ var ServiceTier;
1576
1576
  /**
1577
1577
  * Default service tier, which is standard.
1578
1578
  */
1579
- ServiceTier["SERVICE_TIER_UNSPECIFIED"] = "SERVICE_TIER_UNSPECIFIED";
1579
+ ServiceTier["UNSPECIFIED"] = "unspecified";
1580
1580
  /**
1581
1581
  * Flex service tier.
1582
1582
  */
1583
- ServiceTier["SERVICE_TIER_FLEX"] = "SERVICE_TIER_FLEX";
1583
+ ServiceTier["FLEX"] = "flex";
1584
1584
  /**
1585
1585
  * Standard service tier.
1586
1586
  */
1587
- ServiceTier["SERVICE_TIER_STANDARD"] = "SERVICE_TIER_STANDARD";
1587
+ ServiceTier["STANDARD"] = "standard";
1588
1588
  /**
1589
1589
  * Priority service tier.
1590
1590
  */
1591
- ServiceTier["SERVICE_TIER_PRIORITY"] = "SERVICE_TIER_PRIORITY";
1591
+ ServiceTier["PRIORITY"] = "priority";
1592
1592
  })(ServiceTier || (ServiceTier = {}));
1593
1593
  /** Options for feature selection preference. */
1594
1594
  var FeatureSelectionPreference;
@@ -10087,8 +10087,9 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
10087
10087
  if (parentObject !== undefined && fromModelArmorConfig != null) {
10088
10088
  setValueByPath(parentObject, ['modelArmorConfig'], fromModelArmorConfig);
10089
10089
  }
10090
- if (getValueByPath(fromObject, ['serviceTier']) !== undefined) {
10091
- throw new Error('serviceTier parameter is not supported in Vertex AI.');
10090
+ const fromServiceTier = getValueByPath(fromObject, ['serviceTier']);
10091
+ if (parentObject !== undefined && fromServiceTier != null) {
10092
+ setValueByPath(parentObject, ['serviceTier'], fromServiceTier);
10092
10093
  }
10093
10094
  return toObject;
10094
10095
  }
@@ -12743,7 +12744,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
12743
12744
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
12744
12745
  const USER_AGENT_HEADER = 'User-Agent';
12745
12746
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
12746
- const SDK_VERSION = '1.47.0'; // x-release-please-version
12747
+ const SDK_VERSION = '1.48.0'; // x-release-please-version
12747
12748
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
12748
12749
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
12749
12750
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';