@google/genai 1.50.1 → 1.52.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 +199 -101
- package/dist/index.cjs +207 -146
- package/dist/index.mjs +208 -147
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +235 -156
- package/dist/node/index.mjs +236 -157
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +199 -101
- 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 +130 -117
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +97 -24
- package/dist/vertex_internal/index.js +130 -117
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +201 -145
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +199 -101
- package/package.json +6 -1
package/dist/tokenizer/node.cjs
CHANGED
|
@@ -1049,7 +1049,7 @@ var FeatureSelectionPreference;
|
|
|
1049
1049
|
FeatureSelectionPreference["BALANCED"] = "BALANCED";
|
|
1050
1050
|
FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
|
|
1051
1051
|
})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
|
|
1052
|
-
/** Enum representing the
|
|
1052
|
+
/** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
|
|
1053
1053
|
var EmbeddingApiType;
|
|
1054
1054
|
(function (EmbeddingApiType) {
|
|
1055
1055
|
/**
|
|
@@ -1207,6 +1207,20 @@ var VideoCompressionQuality;
|
|
|
1207
1207
|
*/
|
|
1208
1208
|
VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
|
|
1209
1209
|
})(VideoCompressionQuality || (VideoCompressionQuality = {}));
|
|
1210
|
+
/** Resize mode for the image input for video generation. */
|
|
1211
|
+
var ImageResizeMode;
|
|
1212
|
+
(function (ImageResizeMode) {
|
|
1213
|
+
/**
|
|
1214
|
+
* Crop the image to fit the correct aspect ratio (so we lose parts
|
|
1215
|
+
of the image in the process).
|
|
1216
|
+
*/
|
|
1217
|
+
ImageResizeMode["CROP"] = "CROP";
|
|
1218
|
+
/**
|
|
1219
|
+
* Pad the image to fit the correct aspect ratio (so we don't lose
|
|
1220
|
+
any parts of the image in the process).
|
|
1221
|
+
*/
|
|
1222
|
+
ImageResizeMode["PAD"] = "PAD";
|
|
1223
|
+
})(ImageResizeMode || (ImageResizeMode = {}));
|
|
1210
1224
|
/** Enum representing the tuning method. */
|
|
1211
1225
|
var TuningMethod;
|
|
1212
1226
|
(function (TuningMethod) {
|
package/dist/tokenizer/node.d.ts
CHANGED
|
@@ -576,7 +576,7 @@ declare interface HttpOptions {
|
|
|
576
576
|
timeout?: number;
|
|
577
577
|
/** Extra parameters to add to the request body.
|
|
578
578
|
The structure must match the backend API's request structure.
|
|
579
|
-
-
|
|
579
|
+
- Gemini Enterprise Agent Platform backend API docs: https://cloud.google.com/vertex-ai/docs/reference/rest
|
|
580
580
|
- GeminiAPI backend API docs: https://ai.google.dev/api/rest */
|
|
581
581
|
extraBody?: Record<string, unknown>;
|
|
582
582
|
/** HTTP retry options for the request. */
|
package/dist/tokenizer/node.mjs
CHANGED
|
@@ -1025,7 +1025,7 @@ var FeatureSelectionPreference;
|
|
|
1025
1025
|
FeatureSelectionPreference["BALANCED"] = "BALANCED";
|
|
1026
1026
|
FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
|
|
1027
1027
|
})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
|
|
1028
|
-
/** Enum representing the
|
|
1028
|
+
/** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
|
|
1029
1029
|
var EmbeddingApiType;
|
|
1030
1030
|
(function (EmbeddingApiType) {
|
|
1031
1031
|
/**
|
|
@@ -1183,6 +1183,20 @@ var VideoCompressionQuality;
|
|
|
1183
1183
|
*/
|
|
1184
1184
|
VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
|
|
1185
1185
|
})(VideoCompressionQuality || (VideoCompressionQuality = {}));
|
|
1186
|
+
/** Resize mode for the image input for video generation. */
|
|
1187
|
+
var ImageResizeMode;
|
|
1188
|
+
(function (ImageResizeMode) {
|
|
1189
|
+
/**
|
|
1190
|
+
* Crop the image to fit the correct aspect ratio (so we lose parts
|
|
1191
|
+
of the image in the process).
|
|
1192
|
+
*/
|
|
1193
|
+
ImageResizeMode["CROP"] = "CROP";
|
|
1194
|
+
/**
|
|
1195
|
+
* Pad the image to fit the correct aspect ratio (so we don't lose
|
|
1196
|
+
any parts of the image in the process).
|
|
1197
|
+
*/
|
|
1198
|
+
ImageResizeMode["PAD"] = "PAD";
|
|
1199
|
+
})(ImageResizeMode || (ImageResizeMode = {}));
|
|
1186
1200
|
/** Enum representing the tuning method. */
|
|
1187
1201
|
var TuningMethod;
|
|
1188
1202
|
(function (TuningMethod) {
|