@google/genai 1.50.0 → 1.51.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.
- package/README.md +12 -12
- package/dist/genai.d.ts +230 -358
- package/dist/index.cjs +164 -148
- package/dist/index.mjs +165 -149
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +192 -158
- package/dist/node/index.mjs +193 -159
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +230 -358
- package/dist/tokenizer/node.cjs +15 -1
- package/dist/tokenizer/node.d.ts +1 -1
- package/dist/tokenizer/node.mjs +15 -1
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +16 -2
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +75 -24
- package/dist/vertex_internal/index.js +16 -2
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +158 -147
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +230 -358
- package/package.json +6 -1
|
@@ -1419,7 +1419,7 @@ var FeatureSelectionPreference;
|
|
|
1419
1419
|
FeatureSelectionPreference["BALANCED"] = "BALANCED";
|
|
1420
1420
|
FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
|
|
1421
1421
|
})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
|
|
1422
|
-
/** Enum representing the
|
|
1422
|
+
/** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
|
|
1423
1423
|
var EmbeddingApiType;
|
|
1424
1424
|
(function (EmbeddingApiType) {
|
|
1425
1425
|
/**
|
|
@@ -1577,6 +1577,20 @@ var VideoCompressionQuality;
|
|
|
1577
1577
|
*/
|
|
1578
1578
|
VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
|
|
1579
1579
|
})(VideoCompressionQuality || (VideoCompressionQuality = {}));
|
|
1580
|
+
/** Resize mode for the image input for video generation. */
|
|
1581
|
+
var ImageResizeMode;
|
|
1582
|
+
(function (ImageResizeMode) {
|
|
1583
|
+
/**
|
|
1584
|
+
* Crop the image to fit the correct aspect ratio (so we lose parts
|
|
1585
|
+
of the image in the process).
|
|
1586
|
+
*/
|
|
1587
|
+
ImageResizeMode["CROP"] = "CROP";
|
|
1588
|
+
/**
|
|
1589
|
+
* Pad the image to fit the correct aspect ratio (so we don't lose
|
|
1590
|
+
any parts of the image in the process).
|
|
1591
|
+
*/
|
|
1592
|
+
ImageResizeMode["PAD"] = "PAD";
|
|
1593
|
+
})(ImageResizeMode || (ImageResizeMode = {}));
|
|
1580
1594
|
/** Enum representing the tuning method. */
|
|
1581
1595
|
var TuningMethod;
|
|
1582
1596
|
(function (TuningMethod) {
|
|
@@ -1997,7 +2011,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
1997
2011
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
1998
2012
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
1999
2013
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2000
|
-
const SDK_VERSION = '1.
|
|
2014
|
+
const SDK_VERSION = '1.51.0'; // x-release-please-version
|
|
2001
2015
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2002
2016
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2003
2017
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|