@google/genai 1.38.0 → 1.40.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/dist/genai.d.ts +163 -33
- package/dist/index.cjs +356 -125
- package/dist/index.mjs +356 -126
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +399 -126
- package/dist/node/index.mjs +399 -127
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +163 -33
- package/dist/tokenizer/node.cjs +4 -0
- package/dist/tokenizer/node.mjs +4 -0
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/web/index.mjs +356 -126
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +163 -33
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1501,6 +1501,10 @@ exports.TuningMethod = void 0;
|
|
|
1501
1501
|
* Preference optimization tuning.
|
|
1502
1502
|
*/
|
|
1503
1503
|
TuningMethod["PREFERENCE_TUNING"] = "PREFERENCE_TUNING";
|
|
1504
|
+
/**
|
|
1505
|
+
* Distillation tuning.
|
|
1506
|
+
*/
|
|
1507
|
+
TuningMethod["DISTILLATION"] = "DISTILLATION";
|
|
1504
1508
|
})(exports.TuningMethod || (exports.TuningMethod = {}));
|
|
1505
1509
|
/** State for the lifecycle of a Document. */
|
|
1506
1510
|
exports.DocumentState = void 0;
|
|
@@ -2292,6 +2296,9 @@ class CreateFileResponse {
|
|
|
2292
2296
|
/** Response for the delete file method. */
|
|
2293
2297
|
class DeleteFileResponse {
|
|
2294
2298
|
}
|
|
2299
|
+
/** Response for the _register file method. */
|
|
2300
|
+
class RegisterFilesResponse {
|
|
2301
|
+
}
|
|
2295
2302
|
/** Config for `inlined_responses` parameter. */
|
|
2296
2303
|
class InlinedResponse {
|
|
2297
2304
|
}
|
|
@@ -4286,6 +4293,10 @@ function inlinedResponseFromMldev(fromObject) {
|
|
|
4286
4293
|
if (fromResponse != null) {
|
|
4287
4294
|
setValueByPath(toObject, ['response'], generateContentResponseFromMldev$1(fromResponse));
|
|
4288
4295
|
}
|
|
4296
|
+
const fromMetadata = getValueByPath(fromObject, ['metadata']);
|
|
4297
|
+
if (fromMetadata != null) {
|
|
4298
|
+
setValueByPath(toObject, ['metadata'], fromMetadata);
|
|
4299
|
+
}
|
|
4289
4300
|
const fromError = getValueByPath(fromObject, ['error']);
|
|
4290
4301
|
if (fromError != null) {
|
|
4291
4302
|
setValueByPath(toObject, ['error'], fromError);
|
|
@@ -6920,7 +6931,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
6920
6931
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
6921
6932
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
6922
6933
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
6923
|
-
const SDK_VERSION = '1.
|
|
6934
|
+
const SDK_VERSION = '1.40.0'; // x-release-please-version
|
|
6924
6935
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
6925
6936
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
6926
6937
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -7755,6 +7766,14 @@ function getFileParametersToMldev(fromObject) {
|
|
|
7755
7766
|
}
|
|
7756
7767
|
return toObject;
|
|
7757
7768
|
}
|
|
7769
|
+
function internalRegisterFilesParametersToMldev(fromObject) {
|
|
7770
|
+
const toObject = {};
|
|
7771
|
+
const fromUris = getValueByPath(fromObject, ['uris']);
|
|
7772
|
+
if (fromUris != null) {
|
|
7773
|
+
setValueByPath(toObject, ['uris'], fromUris);
|
|
7774
|
+
}
|
|
7775
|
+
return toObject;
|
|
7776
|
+
}
|
|
7758
7777
|
function listFilesConfigToMldev(fromObject, parentObject) {
|
|
7759
7778
|
const toObject = {};
|
|
7760
7779
|
const fromPageSize = getValueByPath(fromObject, ['pageSize']);
|
|
@@ -7801,6 +7820,26 @@ function listFilesResponseFromMldev(fromObject) {
|
|
|
7801
7820
|
}
|
|
7802
7821
|
return toObject;
|
|
7803
7822
|
}
|
|
7823
|
+
function registerFilesResponseFromMldev(fromObject) {
|
|
7824
|
+
const toObject = {};
|
|
7825
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
7826
|
+
'sdkHttpResponse',
|
|
7827
|
+
]);
|
|
7828
|
+
if (fromSdkHttpResponse != null) {
|
|
7829
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
7830
|
+
}
|
|
7831
|
+
const fromFiles = getValueByPath(fromObject, ['files']);
|
|
7832
|
+
if (fromFiles != null) {
|
|
7833
|
+
let transformedList = fromFiles;
|
|
7834
|
+
if (Array.isArray(transformedList)) {
|
|
7835
|
+
transformedList = transformedList.map((item) => {
|
|
7836
|
+
return item;
|
|
7837
|
+
});
|
|
7838
|
+
}
|
|
7839
|
+
setValueByPath(toObject, ['files'], transformedList);
|
|
7840
|
+
}
|
|
7841
|
+
return toObject;
|
|
7842
|
+
}
|
|
7804
7843
|
|
|
7805
7844
|
/**
|
|
7806
7845
|
* @license
|
|
@@ -7901,6 +7940,16 @@ class Files extends BaseModule {
|
|
|
7901
7940
|
async download(params) {
|
|
7902
7941
|
await this.apiClient.downloadFile(params);
|
|
7903
7942
|
}
|
|
7943
|
+
/**
|
|
7944
|
+
* Registers Google Cloud Storage files for use with the API.
|
|
7945
|
+
* This method is only available in Node.js environments.
|
|
7946
|
+
*/
|
|
7947
|
+
async registerFiles(params) {
|
|
7948
|
+
throw new Error('registerFiles is only supported in Node.js environments.');
|
|
7949
|
+
}
|
|
7950
|
+
async _registerFiles(params) {
|
|
7951
|
+
return this.registerFilesInternal(params);
|
|
7952
|
+
}
|
|
7904
7953
|
async listInternal(params) {
|
|
7905
7954
|
var _a, _b;
|
|
7906
7955
|
let response;
|
|
@@ -8074,6 +8123,40 @@ class Files extends BaseModule {
|
|
|
8074
8123
|
});
|
|
8075
8124
|
}
|
|
8076
8125
|
}
|
|
8126
|
+
async registerFilesInternal(params) {
|
|
8127
|
+
var _a, _b;
|
|
8128
|
+
let response;
|
|
8129
|
+
let path = '';
|
|
8130
|
+
let queryParams = {};
|
|
8131
|
+
if (this.apiClient.isVertexAI()) {
|
|
8132
|
+
throw new Error('This method is only supported by the Gemini Developer API.');
|
|
8133
|
+
}
|
|
8134
|
+
else {
|
|
8135
|
+
const body = internalRegisterFilesParametersToMldev(params);
|
|
8136
|
+
path = formatMap('files:register', body['_url']);
|
|
8137
|
+
queryParams = body['_query'];
|
|
8138
|
+
delete body['_url'];
|
|
8139
|
+
delete body['_query'];
|
|
8140
|
+
response = this.apiClient
|
|
8141
|
+
.request({
|
|
8142
|
+
path: path,
|
|
8143
|
+
queryParams: queryParams,
|
|
8144
|
+
body: JSON.stringify(body),
|
|
8145
|
+
httpMethod: 'POST',
|
|
8146
|
+
httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,
|
|
8147
|
+
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
8148
|
+
})
|
|
8149
|
+
.then((httpResponse) => {
|
|
8150
|
+
return httpResponse.json();
|
|
8151
|
+
});
|
|
8152
|
+
return response.then((apiResponse) => {
|
|
8153
|
+
const resp = registerFilesResponseFromMldev(apiResponse);
|
|
8154
|
+
const typedResp = new RegisterFilesResponse();
|
|
8155
|
+
Object.assign(typedResp, resp);
|
|
8156
|
+
return typedResp;
|
|
8157
|
+
});
|
|
8158
|
+
}
|
|
8159
|
+
}
|
|
8077
8160
|
}
|
|
8078
8161
|
|
|
8079
8162
|
/**
|
|
@@ -9312,7 +9395,9 @@ class BaseInteractions extends APIResource {
|
|
|
9312
9395
|
*
|
|
9313
9396
|
* @example
|
|
9314
9397
|
* ```ts
|
|
9315
|
-
* const interaction = await client.interactions.delete('id'
|
|
9398
|
+
* const interaction = await client.interactions.delete('id', {
|
|
9399
|
+
* api_version: 'api_version',
|
|
9400
|
+
* });
|
|
9316
9401
|
* ```
|
|
9317
9402
|
*/
|
|
9318
9403
|
delete(id, params = {}, options) {
|
|
@@ -9324,7 +9409,9 @@ class BaseInteractions extends APIResource {
|
|
|
9324
9409
|
*
|
|
9325
9410
|
* @example
|
|
9326
9411
|
* ```ts
|
|
9327
|
-
* const interaction = await client.interactions.cancel('id'
|
|
9412
|
+
* const interaction = await client.interactions.cancel('id', {
|
|
9413
|
+
* api_version: 'api_version',
|
|
9414
|
+
* });
|
|
9328
9415
|
* ```
|
|
9329
9416
|
*/
|
|
9330
9417
|
cancel(id, params = {}, options) {
|
|
@@ -9930,6 +10017,11 @@ async function defaultParseResponse(client, props) {
|
|
|
9930
10017
|
const mediaType = (_a = contentType === null || contentType === void 0 ? void 0 : contentType.split(';')[0]) === null || _a === void 0 ? void 0 : _a.trim();
|
|
9931
10018
|
const isJSON = (mediaType === null || mediaType === void 0 ? void 0 : mediaType.includes('application/json')) || (mediaType === null || mediaType === void 0 ? void 0 : mediaType.endsWith('+json'));
|
|
9932
10019
|
if (isJSON) {
|
|
10020
|
+
const contentLength = response.headers.get('content-length');
|
|
10021
|
+
if (contentLength === '0') {
|
|
10022
|
+
// if there is no content we can't do anything
|
|
10023
|
+
return undefined;
|
|
10024
|
+
}
|
|
9933
10025
|
const json = await response.json();
|
|
9934
10026
|
return json;
|
|
9935
10027
|
}
|
|
@@ -10389,9 +10481,10 @@ class BaseGeminiNextGenAPIClient {
|
|
|
10389
10481
|
}
|
|
10390
10482
|
async fetchWithTimeout(url, init, ms, controller) {
|
|
10391
10483
|
const _b = init || {}, { signal, method } = _b, options = __rest(_b, ["signal", "method"]);
|
|
10484
|
+
const abort = controller.abort.bind(controller);
|
|
10392
10485
|
if (signal)
|
|
10393
|
-
signal.addEventListener('abort',
|
|
10394
|
-
const timeout = setTimeout(
|
|
10486
|
+
signal.addEventListener('abort', abort, { once: true });
|
|
10487
|
+
const timeout = setTimeout(abort, ms);
|
|
10395
10488
|
const isReadableBody = (globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream) ||
|
|
10396
10489
|
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
10397
10490
|
const fetchOptions = Object.assign(Object.assign(Object.assign({ signal: controller.signal }, (isReadableBody ? { duplex: 'half' } : {})), { method: 'GET' }), options);
|
|
@@ -11535,7 +11628,7 @@ function voiceActivityFromVertex(fromObject) {
|
|
|
11535
11628
|
* Copyright 2025 Google LLC
|
|
11536
11629
|
* SPDX-License-Identifier: Apache-2.0
|
|
11537
11630
|
*/
|
|
11538
|
-
function blobToMldev$1(fromObject) {
|
|
11631
|
+
function blobToMldev$1(fromObject, _rootObject) {
|
|
11539
11632
|
const toObject = {};
|
|
11540
11633
|
const fromData = getValueByPath(fromObject, ['data']);
|
|
11541
11634
|
if (fromData != null) {
|
|
@@ -11550,7 +11643,7 @@ function blobToMldev$1(fromObject) {
|
|
|
11550
11643
|
}
|
|
11551
11644
|
return toObject;
|
|
11552
11645
|
}
|
|
11553
|
-
function candidateFromMldev(fromObject) {
|
|
11646
|
+
function candidateFromMldev(fromObject, rootObject) {
|
|
11554
11647
|
const toObject = {};
|
|
11555
11648
|
const fromContent = getValueByPath(fromObject, ['content']);
|
|
11556
11649
|
if (fromContent != null) {
|
|
@@ -11610,7 +11703,7 @@ function candidateFromMldev(fromObject) {
|
|
|
11610
11703
|
}
|
|
11611
11704
|
return toObject;
|
|
11612
11705
|
}
|
|
11613
|
-
function citationMetadataFromMldev(fromObject) {
|
|
11706
|
+
function citationMetadataFromMldev(fromObject, _rootObject) {
|
|
11614
11707
|
const toObject = {};
|
|
11615
11708
|
const fromCitations = getValueByPath(fromObject, ['citationSources']);
|
|
11616
11709
|
if (fromCitations != null) {
|
|
@@ -11624,7 +11717,7 @@ function citationMetadataFromMldev(fromObject) {
|
|
|
11624
11717
|
}
|
|
11625
11718
|
return toObject;
|
|
11626
11719
|
}
|
|
11627
|
-
function computeTokensParametersToVertex(apiClient, fromObject) {
|
|
11720
|
+
function computeTokensParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
11628
11721
|
const toObject = {};
|
|
11629
11722
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11630
11723
|
if (fromModel != null) {
|
|
@@ -11642,7 +11735,7 @@ function computeTokensParametersToVertex(apiClient, fromObject) {
|
|
|
11642
11735
|
}
|
|
11643
11736
|
return toObject;
|
|
11644
11737
|
}
|
|
11645
|
-
function computeTokensResponseFromVertex(fromObject) {
|
|
11738
|
+
function computeTokensResponseFromVertex(fromObject, _rootObject) {
|
|
11646
11739
|
const toObject = {};
|
|
11647
11740
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11648
11741
|
'sdkHttpResponse',
|
|
@@ -11662,7 +11755,7 @@ function computeTokensResponseFromVertex(fromObject) {
|
|
|
11662
11755
|
}
|
|
11663
11756
|
return toObject;
|
|
11664
11757
|
}
|
|
11665
|
-
function contentEmbeddingFromVertex(fromObject) {
|
|
11758
|
+
function contentEmbeddingFromVertex(fromObject, rootObject) {
|
|
11666
11759
|
const toObject = {};
|
|
11667
11760
|
const fromValues = getValueByPath(fromObject, ['values']);
|
|
11668
11761
|
if (fromValues != null) {
|
|
@@ -11674,7 +11767,7 @@ function contentEmbeddingFromVertex(fromObject) {
|
|
|
11674
11767
|
}
|
|
11675
11768
|
return toObject;
|
|
11676
11769
|
}
|
|
11677
|
-
function contentEmbeddingStatisticsFromVertex(fromObject) {
|
|
11770
|
+
function contentEmbeddingStatisticsFromVertex(fromObject, _rootObject) {
|
|
11678
11771
|
const toObject = {};
|
|
11679
11772
|
const fromTruncated = getValueByPath(fromObject, ['truncated']);
|
|
11680
11773
|
if (fromTruncated != null) {
|
|
@@ -11686,7 +11779,7 @@ function contentEmbeddingStatisticsFromVertex(fromObject) {
|
|
|
11686
11779
|
}
|
|
11687
11780
|
return toObject;
|
|
11688
11781
|
}
|
|
11689
|
-
function contentToMldev$1(fromObject) {
|
|
11782
|
+
function contentToMldev$1(fromObject, rootObject) {
|
|
11690
11783
|
const toObject = {};
|
|
11691
11784
|
const fromParts = getValueByPath(fromObject, ['parts']);
|
|
11692
11785
|
if (fromParts != null) {
|
|
@@ -11704,7 +11797,7 @@ function contentToMldev$1(fromObject) {
|
|
|
11704
11797
|
}
|
|
11705
11798
|
return toObject;
|
|
11706
11799
|
}
|
|
11707
|
-
function controlReferenceConfigToVertex(fromObject) {
|
|
11800
|
+
function controlReferenceConfigToVertex(fromObject, _rootObject) {
|
|
11708
11801
|
const toObject = {};
|
|
11709
11802
|
const fromControlType = getValueByPath(fromObject, ['controlType']);
|
|
11710
11803
|
if (fromControlType != null) {
|
|
@@ -11718,7 +11811,7 @@ function controlReferenceConfigToVertex(fromObject) {
|
|
|
11718
11811
|
}
|
|
11719
11812
|
return toObject;
|
|
11720
11813
|
}
|
|
11721
|
-
function countTokensConfigToMldev(fromObject) {
|
|
11814
|
+
function countTokensConfigToMldev(fromObject, _rootObject) {
|
|
11722
11815
|
const toObject = {};
|
|
11723
11816
|
if (getValueByPath(fromObject, ['systemInstruction']) !== undefined) {
|
|
11724
11817
|
throw new Error('systemInstruction parameter is not supported in Gemini API.');
|
|
@@ -11731,7 +11824,7 @@ function countTokensConfigToMldev(fromObject) {
|
|
|
11731
11824
|
}
|
|
11732
11825
|
return toObject;
|
|
11733
11826
|
}
|
|
11734
|
-
function countTokensConfigToVertex(fromObject, parentObject) {
|
|
11827
|
+
function countTokensConfigToVertex(fromObject, parentObject, rootObject) {
|
|
11735
11828
|
const toObject = {};
|
|
11736
11829
|
const fromSystemInstruction = getValueByPath(fromObject, [
|
|
11737
11830
|
'systemInstruction',
|
|
@@ -11757,7 +11850,7 @@ function countTokensConfigToVertex(fromObject, parentObject) {
|
|
|
11757
11850
|
}
|
|
11758
11851
|
return toObject;
|
|
11759
11852
|
}
|
|
11760
|
-
function countTokensParametersToMldev(apiClient, fromObject) {
|
|
11853
|
+
function countTokensParametersToMldev(apiClient, fromObject, rootObject) {
|
|
11761
11854
|
const toObject = {};
|
|
11762
11855
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11763
11856
|
if (fromModel != null) {
|
|
@@ -11779,7 +11872,7 @@ function countTokensParametersToMldev(apiClient, fromObject) {
|
|
|
11779
11872
|
}
|
|
11780
11873
|
return toObject;
|
|
11781
11874
|
}
|
|
11782
|
-
function countTokensParametersToVertex(apiClient, fromObject) {
|
|
11875
|
+
function countTokensParametersToVertex(apiClient, fromObject, rootObject) {
|
|
11783
11876
|
const toObject = {};
|
|
11784
11877
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11785
11878
|
if (fromModel != null) {
|
|
@@ -11801,7 +11894,7 @@ function countTokensParametersToVertex(apiClient, fromObject) {
|
|
|
11801
11894
|
}
|
|
11802
11895
|
return toObject;
|
|
11803
11896
|
}
|
|
11804
|
-
function countTokensResponseFromMldev(fromObject) {
|
|
11897
|
+
function countTokensResponseFromMldev(fromObject, _rootObject) {
|
|
11805
11898
|
const toObject = {};
|
|
11806
11899
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11807
11900
|
'sdkHttpResponse',
|
|
@@ -11821,7 +11914,7 @@ function countTokensResponseFromMldev(fromObject) {
|
|
|
11821
11914
|
}
|
|
11822
11915
|
return toObject;
|
|
11823
11916
|
}
|
|
11824
|
-
function countTokensResponseFromVertex(fromObject) {
|
|
11917
|
+
function countTokensResponseFromVertex(fromObject, _rootObject) {
|
|
11825
11918
|
const toObject = {};
|
|
11826
11919
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11827
11920
|
'sdkHttpResponse',
|
|
@@ -11835,7 +11928,7 @@ function countTokensResponseFromVertex(fromObject) {
|
|
|
11835
11928
|
}
|
|
11836
11929
|
return toObject;
|
|
11837
11930
|
}
|
|
11838
|
-
function deleteModelParametersToMldev(apiClient, fromObject) {
|
|
11931
|
+
function deleteModelParametersToMldev(apiClient, fromObject, _rootObject) {
|
|
11839
11932
|
const toObject = {};
|
|
11840
11933
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11841
11934
|
if (fromModel != null) {
|
|
@@ -11843,7 +11936,7 @@ function deleteModelParametersToMldev(apiClient, fromObject) {
|
|
|
11843
11936
|
}
|
|
11844
11937
|
return toObject;
|
|
11845
11938
|
}
|
|
11846
|
-
function deleteModelParametersToVertex(apiClient, fromObject) {
|
|
11939
|
+
function deleteModelParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
11847
11940
|
const toObject = {};
|
|
11848
11941
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11849
11942
|
if (fromModel != null) {
|
|
@@ -11851,7 +11944,7 @@ function deleteModelParametersToVertex(apiClient, fromObject) {
|
|
|
11851
11944
|
}
|
|
11852
11945
|
return toObject;
|
|
11853
11946
|
}
|
|
11854
|
-
function deleteModelResponseFromMldev(fromObject) {
|
|
11947
|
+
function deleteModelResponseFromMldev(fromObject, _rootObject) {
|
|
11855
11948
|
const toObject = {};
|
|
11856
11949
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11857
11950
|
'sdkHttpResponse',
|
|
@@ -11861,7 +11954,7 @@ function deleteModelResponseFromMldev(fromObject) {
|
|
|
11861
11954
|
}
|
|
11862
11955
|
return toObject;
|
|
11863
11956
|
}
|
|
11864
|
-
function deleteModelResponseFromVertex(fromObject) {
|
|
11957
|
+
function deleteModelResponseFromVertex(fromObject, _rootObject) {
|
|
11865
11958
|
const toObject = {};
|
|
11866
11959
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11867
11960
|
'sdkHttpResponse',
|
|
@@ -11871,7 +11964,7 @@ function deleteModelResponseFromVertex(fromObject) {
|
|
|
11871
11964
|
}
|
|
11872
11965
|
return toObject;
|
|
11873
11966
|
}
|
|
11874
|
-
function editImageConfigToVertex(fromObject, parentObject) {
|
|
11967
|
+
function editImageConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
11875
11968
|
const toObject = {};
|
|
11876
11969
|
const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);
|
|
11877
11970
|
if (parentObject !== undefined && fromOutputGcsUri != null) {
|
|
@@ -11961,7 +12054,7 @@ function editImageConfigToVertex(fromObject, parentObject) {
|
|
|
11961
12054
|
}
|
|
11962
12055
|
return toObject;
|
|
11963
12056
|
}
|
|
11964
|
-
function editImageParametersInternalToVertex(apiClient, fromObject) {
|
|
12057
|
+
function editImageParametersInternalToVertex(apiClient, fromObject, rootObject) {
|
|
11965
12058
|
const toObject = {};
|
|
11966
12059
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11967
12060
|
if (fromModel != null) {
|
|
@@ -11989,7 +12082,7 @@ function editImageParametersInternalToVertex(apiClient, fromObject) {
|
|
|
11989
12082
|
}
|
|
11990
12083
|
return toObject;
|
|
11991
12084
|
}
|
|
11992
|
-
function editImageResponseFromVertex(fromObject) {
|
|
12085
|
+
function editImageResponseFromVertex(fromObject, rootObject) {
|
|
11993
12086
|
const toObject = {};
|
|
11994
12087
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11995
12088
|
'sdkHttpResponse',
|
|
@@ -12011,7 +12104,7 @@ function editImageResponseFromVertex(fromObject) {
|
|
|
12011
12104
|
}
|
|
12012
12105
|
return toObject;
|
|
12013
12106
|
}
|
|
12014
|
-
function embedContentConfigToMldev(fromObject, parentObject) {
|
|
12107
|
+
function embedContentConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
12015
12108
|
const toObject = {};
|
|
12016
12109
|
const fromTaskType = getValueByPath(fromObject, ['taskType']);
|
|
12017
12110
|
if (parentObject !== undefined && fromTaskType != null) {
|
|
@@ -12035,7 +12128,7 @@ function embedContentConfigToMldev(fromObject, parentObject) {
|
|
|
12035
12128
|
}
|
|
12036
12129
|
return toObject;
|
|
12037
12130
|
}
|
|
12038
|
-
function embedContentConfigToVertex(fromObject, parentObject) {
|
|
12131
|
+
function embedContentConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
12039
12132
|
const toObject = {};
|
|
12040
12133
|
const fromTaskType = getValueByPath(fromObject, ['taskType']);
|
|
12041
12134
|
if (parentObject !== undefined && fromTaskType != null) {
|
|
@@ -12061,7 +12154,7 @@ function embedContentConfigToVertex(fromObject, parentObject) {
|
|
|
12061
12154
|
}
|
|
12062
12155
|
return toObject;
|
|
12063
12156
|
}
|
|
12064
|
-
function embedContentParametersToMldev(apiClient, fromObject) {
|
|
12157
|
+
function embedContentParametersToMldev(apiClient, fromObject, rootObject) {
|
|
12065
12158
|
const toObject = {};
|
|
12066
12159
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12067
12160
|
if (fromModel != null) {
|
|
@@ -12087,7 +12180,7 @@ function embedContentParametersToMldev(apiClient, fromObject) {
|
|
|
12087
12180
|
}
|
|
12088
12181
|
return toObject;
|
|
12089
12182
|
}
|
|
12090
|
-
function embedContentParametersToVertex(apiClient, fromObject) {
|
|
12183
|
+
function embedContentParametersToVertex(apiClient, fromObject, rootObject) {
|
|
12091
12184
|
const toObject = {};
|
|
12092
12185
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12093
12186
|
if (fromModel != null) {
|
|
@@ -12109,7 +12202,7 @@ function embedContentParametersToVertex(apiClient, fromObject) {
|
|
|
12109
12202
|
}
|
|
12110
12203
|
return toObject;
|
|
12111
12204
|
}
|
|
12112
|
-
function embedContentResponseFromMldev(fromObject) {
|
|
12205
|
+
function embedContentResponseFromMldev(fromObject, _rootObject) {
|
|
12113
12206
|
const toObject = {};
|
|
12114
12207
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12115
12208
|
'sdkHttpResponse',
|
|
@@ -12133,7 +12226,7 @@ function embedContentResponseFromMldev(fromObject) {
|
|
|
12133
12226
|
}
|
|
12134
12227
|
return toObject;
|
|
12135
12228
|
}
|
|
12136
|
-
function embedContentResponseFromVertex(fromObject) {
|
|
12229
|
+
function embedContentResponseFromVertex(fromObject, rootObject) {
|
|
12137
12230
|
const toObject = {};
|
|
12138
12231
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12139
12232
|
'sdkHttpResponse',
|
|
@@ -12160,7 +12253,7 @@ function embedContentResponseFromVertex(fromObject) {
|
|
|
12160
12253
|
}
|
|
12161
12254
|
return toObject;
|
|
12162
12255
|
}
|
|
12163
|
-
function endpointFromVertex(fromObject) {
|
|
12256
|
+
function endpointFromVertex(fromObject, _rootObject) {
|
|
12164
12257
|
const toObject = {};
|
|
12165
12258
|
const fromName = getValueByPath(fromObject, ['endpoint']);
|
|
12166
12259
|
if (fromName != null) {
|
|
@@ -12174,7 +12267,7 @@ function endpointFromVertex(fromObject) {
|
|
|
12174
12267
|
}
|
|
12175
12268
|
return toObject;
|
|
12176
12269
|
}
|
|
12177
|
-
function fileDataToMldev$1(fromObject) {
|
|
12270
|
+
function fileDataToMldev$1(fromObject, _rootObject) {
|
|
12178
12271
|
const toObject = {};
|
|
12179
12272
|
if (getValueByPath(fromObject, ['displayName']) !== undefined) {
|
|
12180
12273
|
throw new Error('displayName parameter is not supported in Gemini API.');
|
|
@@ -12189,7 +12282,7 @@ function fileDataToMldev$1(fromObject) {
|
|
|
12189
12282
|
}
|
|
12190
12283
|
return toObject;
|
|
12191
12284
|
}
|
|
12192
|
-
function functionCallToMldev$1(fromObject) {
|
|
12285
|
+
function functionCallToMldev$1(fromObject, _rootObject) {
|
|
12193
12286
|
const toObject = {};
|
|
12194
12287
|
const fromId = getValueByPath(fromObject, ['id']);
|
|
12195
12288
|
if (fromId != null) {
|
|
@@ -12211,7 +12304,7 @@ function functionCallToMldev$1(fromObject) {
|
|
|
12211
12304
|
}
|
|
12212
12305
|
return toObject;
|
|
12213
12306
|
}
|
|
12214
|
-
function functionCallingConfigToMldev(fromObject) {
|
|
12307
|
+
function functionCallingConfigToMldev(fromObject, _rootObject) {
|
|
12215
12308
|
const toObject = {};
|
|
12216
12309
|
const fromAllowedFunctionNames = getValueByPath(fromObject, [
|
|
12217
12310
|
'allowedFunctionNames',
|
|
@@ -12229,7 +12322,7 @@ function functionCallingConfigToMldev(fromObject) {
|
|
|
12229
12322
|
}
|
|
12230
12323
|
return toObject;
|
|
12231
12324
|
}
|
|
12232
|
-
function functionDeclarationToVertex(fromObject) {
|
|
12325
|
+
function functionDeclarationToVertex(fromObject, _rootObject) {
|
|
12233
12326
|
const toObject = {};
|
|
12234
12327
|
const fromDescription = getValueByPath(fromObject, ['description']);
|
|
12235
12328
|
if (fromDescription != null) {
|
|
@@ -12264,7 +12357,7 @@ function functionDeclarationToVertex(fromObject) {
|
|
|
12264
12357
|
}
|
|
12265
12358
|
return toObject;
|
|
12266
12359
|
}
|
|
12267
|
-
function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
|
|
12360
|
+
function generateContentConfigToMldev(apiClient, fromObject, parentObject, rootObject) {
|
|
12268
12361
|
const toObject = {};
|
|
12269
12362
|
const fromSystemInstruction = getValueByPath(fromObject, [
|
|
12270
12363
|
'systemInstruction',
|
|
@@ -12427,7 +12520,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
|
|
|
12427
12520
|
}
|
|
12428
12521
|
return toObject;
|
|
12429
12522
|
}
|
|
12430
|
-
function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
|
|
12523
|
+
function generateContentConfigToVertex(apiClient, fromObject, parentObject, rootObject) {
|
|
12431
12524
|
const toObject = {};
|
|
12432
12525
|
const fromSystemInstruction = getValueByPath(fromObject, [
|
|
12433
12526
|
'systemInstruction',
|
|
@@ -12601,7 +12694,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
|
|
|
12601
12694
|
}
|
|
12602
12695
|
return toObject;
|
|
12603
12696
|
}
|
|
12604
|
-
function generateContentParametersToMldev(apiClient, fromObject) {
|
|
12697
|
+
function generateContentParametersToMldev(apiClient, fromObject, rootObject) {
|
|
12605
12698
|
const toObject = {};
|
|
12606
12699
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12607
12700
|
if (fromModel != null) {
|
|
@@ -12623,7 +12716,7 @@ function generateContentParametersToMldev(apiClient, fromObject) {
|
|
|
12623
12716
|
}
|
|
12624
12717
|
return toObject;
|
|
12625
12718
|
}
|
|
12626
|
-
function generateContentParametersToVertex(apiClient, fromObject) {
|
|
12719
|
+
function generateContentParametersToVertex(apiClient, fromObject, rootObject) {
|
|
12627
12720
|
const toObject = {};
|
|
12628
12721
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12629
12722
|
if (fromModel != null) {
|
|
@@ -12645,7 +12738,7 @@ function generateContentParametersToVertex(apiClient, fromObject) {
|
|
|
12645
12738
|
}
|
|
12646
12739
|
return toObject;
|
|
12647
12740
|
}
|
|
12648
|
-
function generateContentResponseFromMldev(fromObject) {
|
|
12741
|
+
function generateContentResponseFromMldev(fromObject, rootObject) {
|
|
12649
12742
|
const toObject = {};
|
|
12650
12743
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12651
12744
|
'sdkHttpResponse',
|
|
@@ -12685,7 +12778,7 @@ function generateContentResponseFromMldev(fromObject) {
|
|
|
12685
12778
|
}
|
|
12686
12779
|
return toObject;
|
|
12687
12780
|
}
|
|
12688
|
-
function generateContentResponseFromVertex(fromObject) {
|
|
12781
|
+
function generateContentResponseFromVertex(fromObject, _rootObject) {
|
|
12689
12782
|
const toObject = {};
|
|
12690
12783
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12691
12784
|
'sdkHttpResponse',
|
|
@@ -12729,7 +12822,7 @@ function generateContentResponseFromVertex(fromObject) {
|
|
|
12729
12822
|
}
|
|
12730
12823
|
return toObject;
|
|
12731
12824
|
}
|
|
12732
|
-
function generateImagesConfigToMldev(fromObject, parentObject) {
|
|
12825
|
+
function generateImagesConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
12733
12826
|
const toObject = {};
|
|
12734
12827
|
if (getValueByPath(fromObject, ['outputGcsUri']) !== undefined) {
|
|
12735
12828
|
throw new Error('outputGcsUri parameter is not supported in Gemini API.');
|
|
@@ -12811,7 +12904,7 @@ function generateImagesConfigToMldev(fromObject, parentObject) {
|
|
|
12811
12904
|
}
|
|
12812
12905
|
return toObject;
|
|
12813
12906
|
}
|
|
12814
|
-
function generateImagesConfigToVertex(fromObject, parentObject) {
|
|
12907
|
+
function generateImagesConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
12815
12908
|
const toObject = {};
|
|
12816
12909
|
const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);
|
|
12817
12910
|
if (parentObject !== undefined && fromOutputGcsUri != null) {
|
|
@@ -12903,7 +12996,7 @@ function generateImagesConfigToVertex(fromObject, parentObject) {
|
|
|
12903
12996
|
}
|
|
12904
12997
|
return toObject;
|
|
12905
12998
|
}
|
|
12906
|
-
function generateImagesParametersToMldev(apiClient, fromObject) {
|
|
12999
|
+
function generateImagesParametersToMldev(apiClient, fromObject, rootObject) {
|
|
12907
13000
|
const toObject = {};
|
|
12908
13001
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12909
13002
|
if (fromModel != null) {
|
|
@@ -12919,7 +13012,7 @@ function generateImagesParametersToMldev(apiClient, fromObject) {
|
|
|
12919
13012
|
}
|
|
12920
13013
|
return toObject;
|
|
12921
13014
|
}
|
|
12922
|
-
function generateImagesParametersToVertex(apiClient, fromObject) {
|
|
13015
|
+
function generateImagesParametersToVertex(apiClient, fromObject, rootObject) {
|
|
12923
13016
|
const toObject = {};
|
|
12924
13017
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12925
13018
|
if (fromModel != null) {
|
|
@@ -12935,7 +13028,7 @@ function generateImagesParametersToVertex(apiClient, fromObject) {
|
|
|
12935
13028
|
}
|
|
12936
13029
|
return toObject;
|
|
12937
13030
|
}
|
|
12938
|
-
function generateImagesResponseFromMldev(fromObject) {
|
|
13031
|
+
function generateImagesResponseFromMldev(fromObject, rootObject) {
|
|
12939
13032
|
const toObject = {};
|
|
12940
13033
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12941
13034
|
'sdkHttpResponse',
|
|
@@ -12963,7 +13056,7 @@ function generateImagesResponseFromMldev(fromObject) {
|
|
|
12963
13056
|
}
|
|
12964
13057
|
return toObject;
|
|
12965
13058
|
}
|
|
12966
|
-
function generateImagesResponseFromVertex(fromObject) {
|
|
13059
|
+
function generateImagesResponseFromVertex(fromObject, rootObject) {
|
|
12967
13060
|
const toObject = {};
|
|
12968
13061
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12969
13062
|
'sdkHttpResponse',
|
|
@@ -12991,7 +13084,7 @@ function generateImagesResponseFromVertex(fromObject) {
|
|
|
12991
13084
|
}
|
|
12992
13085
|
return toObject;
|
|
12993
13086
|
}
|
|
12994
|
-
function generateVideosConfigToMldev(fromObject, parentObject) {
|
|
13087
|
+
function generateVideosConfigToMldev(fromObject, parentObject, rootObject) {
|
|
12995
13088
|
const toObject = {};
|
|
12996
13089
|
const fromNumberOfVideos = getValueByPath(fromObject, [
|
|
12997
13090
|
'numberOfVideos',
|
|
@@ -13070,7 +13163,7 @@ function generateVideosConfigToMldev(fromObject, parentObject) {
|
|
|
13070
13163
|
}
|
|
13071
13164
|
return toObject;
|
|
13072
13165
|
}
|
|
13073
|
-
function generateVideosConfigToVertex(fromObject, parentObject) {
|
|
13166
|
+
function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
|
|
13074
13167
|
const toObject = {};
|
|
13075
13168
|
const fromNumberOfVideos = getValueByPath(fromObject, [
|
|
13076
13169
|
'numberOfVideos',
|
|
@@ -13160,7 +13253,7 @@ function generateVideosConfigToVertex(fromObject, parentObject) {
|
|
|
13160
13253
|
}
|
|
13161
13254
|
return toObject;
|
|
13162
13255
|
}
|
|
13163
|
-
function generateVideosOperationFromMldev(fromObject) {
|
|
13256
|
+
function generateVideosOperationFromMldev(fromObject, rootObject) {
|
|
13164
13257
|
const toObject = {};
|
|
13165
13258
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13166
13259
|
if (fromName != null) {
|
|
@@ -13187,7 +13280,7 @@ function generateVideosOperationFromMldev(fromObject) {
|
|
|
13187
13280
|
}
|
|
13188
13281
|
return toObject;
|
|
13189
13282
|
}
|
|
13190
|
-
function generateVideosOperationFromVertex(fromObject) {
|
|
13283
|
+
function generateVideosOperationFromVertex(fromObject, rootObject) {
|
|
13191
13284
|
const toObject = {};
|
|
13192
13285
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13193
13286
|
if (fromName != null) {
|
|
@@ -13211,7 +13304,7 @@ function generateVideosOperationFromVertex(fromObject) {
|
|
|
13211
13304
|
}
|
|
13212
13305
|
return toObject;
|
|
13213
13306
|
}
|
|
13214
|
-
function generateVideosParametersToMldev(apiClient, fromObject) {
|
|
13307
|
+
function generateVideosParametersToMldev(apiClient, fromObject, rootObject) {
|
|
13215
13308
|
const toObject = {};
|
|
13216
13309
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13217
13310
|
if (fromModel != null) {
|
|
@@ -13239,7 +13332,7 @@ function generateVideosParametersToMldev(apiClient, fromObject) {
|
|
|
13239
13332
|
}
|
|
13240
13333
|
return toObject;
|
|
13241
13334
|
}
|
|
13242
|
-
function generateVideosParametersToVertex(apiClient, fromObject) {
|
|
13335
|
+
function generateVideosParametersToVertex(apiClient, fromObject, rootObject) {
|
|
13243
13336
|
const toObject = {};
|
|
13244
13337
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13245
13338
|
if (fromModel != null) {
|
|
@@ -13267,7 +13360,7 @@ function generateVideosParametersToVertex(apiClient, fromObject) {
|
|
|
13267
13360
|
}
|
|
13268
13361
|
return toObject;
|
|
13269
13362
|
}
|
|
13270
|
-
function generateVideosResponseFromMldev(fromObject) {
|
|
13363
|
+
function generateVideosResponseFromMldev(fromObject, rootObject) {
|
|
13271
13364
|
const toObject = {};
|
|
13272
13365
|
const fromGeneratedVideos = getValueByPath(fromObject, [
|
|
13273
13366
|
'generatedSamples',
|
|
@@ -13295,7 +13388,7 @@ function generateVideosResponseFromMldev(fromObject) {
|
|
|
13295
13388
|
}
|
|
13296
13389
|
return toObject;
|
|
13297
13390
|
}
|
|
13298
|
-
function generateVideosResponseFromVertex(fromObject) {
|
|
13391
|
+
function generateVideosResponseFromVertex(fromObject, rootObject) {
|
|
13299
13392
|
const toObject = {};
|
|
13300
13393
|
const fromGeneratedVideos = getValueByPath(fromObject, ['videos']);
|
|
13301
13394
|
if (fromGeneratedVideos != null) {
|
|
@@ -13321,7 +13414,7 @@ function generateVideosResponseFromVertex(fromObject) {
|
|
|
13321
13414
|
}
|
|
13322
13415
|
return toObject;
|
|
13323
13416
|
}
|
|
13324
|
-
function generateVideosSourceToMldev(fromObject, parentObject) {
|
|
13417
|
+
function generateVideosSourceToMldev(fromObject, parentObject, rootObject) {
|
|
13325
13418
|
const toObject = {};
|
|
13326
13419
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
13327
13420
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -13337,7 +13430,7 @@ function generateVideosSourceToMldev(fromObject, parentObject) {
|
|
|
13337
13430
|
}
|
|
13338
13431
|
return toObject;
|
|
13339
13432
|
}
|
|
13340
|
-
function generateVideosSourceToVertex(fromObject, parentObject) {
|
|
13433
|
+
function generateVideosSourceToVertex(fromObject, parentObject, rootObject) {
|
|
13341
13434
|
const toObject = {};
|
|
13342
13435
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
13343
13436
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -13353,7 +13446,7 @@ function generateVideosSourceToVertex(fromObject, parentObject) {
|
|
|
13353
13446
|
}
|
|
13354
13447
|
return toObject;
|
|
13355
13448
|
}
|
|
13356
|
-
function generatedImageFromMldev(fromObject) {
|
|
13449
|
+
function generatedImageFromMldev(fromObject, rootObject) {
|
|
13357
13450
|
const toObject = {};
|
|
13358
13451
|
const fromImage = getValueByPath(fromObject, ['_self']);
|
|
13359
13452
|
if (fromImage != null) {
|
|
@@ -13371,7 +13464,7 @@ function generatedImageFromMldev(fromObject) {
|
|
|
13371
13464
|
}
|
|
13372
13465
|
return toObject;
|
|
13373
13466
|
}
|
|
13374
|
-
function generatedImageFromVertex(fromObject) {
|
|
13467
|
+
function generatedImageFromVertex(fromObject, rootObject) {
|
|
13375
13468
|
const toObject = {};
|
|
13376
13469
|
const fromImage = getValueByPath(fromObject, ['_self']);
|
|
13377
13470
|
if (fromImage != null) {
|
|
@@ -13393,7 +13486,7 @@ function generatedImageFromVertex(fromObject) {
|
|
|
13393
13486
|
}
|
|
13394
13487
|
return toObject;
|
|
13395
13488
|
}
|
|
13396
|
-
function generatedImageMaskFromVertex(fromObject) {
|
|
13489
|
+
function generatedImageMaskFromVertex(fromObject, rootObject) {
|
|
13397
13490
|
const toObject = {};
|
|
13398
13491
|
const fromMask = getValueByPath(fromObject, ['_self']);
|
|
13399
13492
|
if (fromMask != null) {
|
|
@@ -13411,7 +13504,7 @@ function generatedImageMaskFromVertex(fromObject) {
|
|
|
13411
13504
|
}
|
|
13412
13505
|
return toObject;
|
|
13413
13506
|
}
|
|
13414
|
-
function generatedVideoFromMldev(fromObject) {
|
|
13507
|
+
function generatedVideoFromMldev(fromObject, rootObject) {
|
|
13415
13508
|
const toObject = {};
|
|
13416
13509
|
const fromVideo = getValueByPath(fromObject, ['video']);
|
|
13417
13510
|
if (fromVideo != null) {
|
|
@@ -13419,7 +13512,7 @@ function generatedVideoFromMldev(fromObject) {
|
|
|
13419
13512
|
}
|
|
13420
13513
|
return toObject;
|
|
13421
13514
|
}
|
|
13422
|
-
function generatedVideoFromVertex(fromObject) {
|
|
13515
|
+
function generatedVideoFromVertex(fromObject, rootObject) {
|
|
13423
13516
|
const toObject = {};
|
|
13424
13517
|
const fromVideo = getValueByPath(fromObject, ['_self']);
|
|
13425
13518
|
if (fromVideo != null) {
|
|
@@ -13427,7 +13520,7 @@ function generatedVideoFromVertex(fromObject) {
|
|
|
13427
13520
|
}
|
|
13428
13521
|
return toObject;
|
|
13429
13522
|
}
|
|
13430
|
-
function generationConfigToVertex(fromObject) {
|
|
13523
|
+
function generationConfigToVertex(fromObject, _rootObject) {
|
|
13431
13524
|
const toObject = {};
|
|
13432
13525
|
const fromModelSelectionConfig = getValueByPath(fromObject, [
|
|
13433
13526
|
'modelSelectionConfig',
|
|
@@ -13555,7 +13648,7 @@ function generationConfigToVertex(fromObject) {
|
|
|
13555
13648
|
}
|
|
13556
13649
|
return toObject;
|
|
13557
13650
|
}
|
|
13558
|
-
function getModelParametersToMldev(apiClient, fromObject) {
|
|
13651
|
+
function getModelParametersToMldev(apiClient, fromObject, _rootObject) {
|
|
13559
13652
|
const toObject = {};
|
|
13560
13653
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13561
13654
|
if (fromModel != null) {
|
|
@@ -13563,7 +13656,7 @@ function getModelParametersToMldev(apiClient, fromObject) {
|
|
|
13563
13656
|
}
|
|
13564
13657
|
return toObject;
|
|
13565
13658
|
}
|
|
13566
|
-
function getModelParametersToVertex(apiClient, fromObject) {
|
|
13659
|
+
function getModelParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
13567
13660
|
const toObject = {};
|
|
13568
13661
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13569
13662
|
if (fromModel != null) {
|
|
@@ -13571,7 +13664,7 @@ function getModelParametersToVertex(apiClient, fromObject) {
|
|
|
13571
13664
|
}
|
|
13572
13665
|
return toObject;
|
|
13573
13666
|
}
|
|
13574
|
-
function googleMapsToMldev$1(fromObject) {
|
|
13667
|
+
function googleMapsToMldev$1(fromObject, _rootObject) {
|
|
13575
13668
|
const toObject = {};
|
|
13576
13669
|
if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
|
|
13577
13670
|
throw new Error('authConfig parameter is not supported in Gemini API.');
|
|
@@ -13582,7 +13675,7 @@ function googleMapsToMldev$1(fromObject) {
|
|
|
13582
13675
|
}
|
|
13583
13676
|
return toObject;
|
|
13584
13677
|
}
|
|
13585
|
-
function googleSearchToMldev$1(fromObject) {
|
|
13678
|
+
function googleSearchToMldev$1(fromObject, _rootObject) {
|
|
13586
13679
|
const toObject = {};
|
|
13587
13680
|
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
13588
13681
|
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
@@ -13598,7 +13691,7 @@ function googleSearchToMldev$1(fromObject) {
|
|
|
13598
13691
|
}
|
|
13599
13692
|
return toObject;
|
|
13600
13693
|
}
|
|
13601
|
-
function imageConfigToMldev(fromObject) {
|
|
13694
|
+
function imageConfigToMldev(fromObject, _rootObject) {
|
|
13602
13695
|
const toObject = {};
|
|
13603
13696
|
const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
|
|
13604
13697
|
if (fromAspectRatio != null) {
|
|
@@ -13620,7 +13713,7 @@ function imageConfigToMldev(fromObject) {
|
|
|
13620
13713
|
}
|
|
13621
13714
|
return toObject;
|
|
13622
13715
|
}
|
|
13623
|
-
function imageConfigToVertex(fromObject) {
|
|
13716
|
+
function imageConfigToVertex(fromObject, _rootObject) {
|
|
13624
13717
|
const toObject = {};
|
|
13625
13718
|
const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
|
|
13626
13719
|
if (fromAspectRatio != null) {
|
|
@@ -13650,7 +13743,7 @@ function imageConfigToVertex(fromObject) {
|
|
|
13650
13743
|
}
|
|
13651
13744
|
return toObject;
|
|
13652
13745
|
}
|
|
13653
|
-
function imageFromMldev(fromObject) {
|
|
13746
|
+
function imageFromMldev(fromObject, _rootObject) {
|
|
13654
13747
|
const toObject = {};
|
|
13655
13748
|
const fromImageBytes = getValueByPath(fromObject, [
|
|
13656
13749
|
'bytesBase64Encoded',
|
|
@@ -13664,7 +13757,7 @@ function imageFromMldev(fromObject) {
|
|
|
13664
13757
|
}
|
|
13665
13758
|
return toObject;
|
|
13666
13759
|
}
|
|
13667
|
-
function imageFromVertex(fromObject) {
|
|
13760
|
+
function imageFromVertex(fromObject, _rootObject) {
|
|
13668
13761
|
const toObject = {};
|
|
13669
13762
|
const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);
|
|
13670
13763
|
if (fromGcsUri != null) {
|
|
@@ -13682,7 +13775,7 @@ function imageFromVertex(fromObject) {
|
|
|
13682
13775
|
}
|
|
13683
13776
|
return toObject;
|
|
13684
13777
|
}
|
|
13685
|
-
function imageToMldev(fromObject) {
|
|
13778
|
+
function imageToMldev(fromObject, _rootObject) {
|
|
13686
13779
|
const toObject = {};
|
|
13687
13780
|
if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {
|
|
13688
13781
|
throw new Error('gcsUri parameter is not supported in Gemini API.');
|
|
@@ -13697,7 +13790,7 @@ function imageToMldev(fromObject) {
|
|
|
13697
13790
|
}
|
|
13698
13791
|
return toObject;
|
|
13699
13792
|
}
|
|
13700
|
-
function imageToVertex(fromObject) {
|
|
13793
|
+
function imageToVertex(fromObject, _rootObject) {
|
|
13701
13794
|
const toObject = {};
|
|
13702
13795
|
const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);
|
|
13703
13796
|
if (fromGcsUri != null) {
|
|
@@ -13713,7 +13806,7 @@ function imageToVertex(fromObject) {
|
|
|
13713
13806
|
}
|
|
13714
13807
|
return toObject;
|
|
13715
13808
|
}
|
|
13716
|
-
function listModelsConfigToMldev(apiClient, fromObject, parentObject) {
|
|
13809
|
+
function listModelsConfigToMldev(apiClient, fromObject, parentObject, _rootObject) {
|
|
13717
13810
|
const toObject = {};
|
|
13718
13811
|
const fromPageSize = getValueByPath(fromObject, ['pageSize']);
|
|
13719
13812
|
if (parentObject !== undefined && fromPageSize != null) {
|
|
@@ -13733,7 +13826,7 @@ function listModelsConfigToMldev(apiClient, fromObject, parentObject) {
|
|
|
13733
13826
|
}
|
|
13734
13827
|
return toObject;
|
|
13735
13828
|
}
|
|
13736
|
-
function listModelsConfigToVertex(apiClient, fromObject, parentObject) {
|
|
13829
|
+
function listModelsConfigToVertex(apiClient, fromObject, parentObject, _rootObject) {
|
|
13737
13830
|
const toObject = {};
|
|
13738
13831
|
const fromPageSize = getValueByPath(fromObject, ['pageSize']);
|
|
13739
13832
|
if (parentObject !== undefined && fromPageSize != null) {
|
|
@@ -13753,7 +13846,7 @@ function listModelsConfigToVertex(apiClient, fromObject, parentObject) {
|
|
|
13753
13846
|
}
|
|
13754
13847
|
return toObject;
|
|
13755
13848
|
}
|
|
13756
|
-
function listModelsParametersToMldev(apiClient, fromObject) {
|
|
13849
|
+
function listModelsParametersToMldev(apiClient, fromObject, rootObject) {
|
|
13757
13850
|
const toObject = {};
|
|
13758
13851
|
const fromConfig = getValueByPath(fromObject, ['config']);
|
|
13759
13852
|
if (fromConfig != null) {
|
|
@@ -13761,7 +13854,7 @@ function listModelsParametersToMldev(apiClient, fromObject) {
|
|
|
13761
13854
|
}
|
|
13762
13855
|
return toObject;
|
|
13763
13856
|
}
|
|
13764
|
-
function listModelsParametersToVertex(apiClient, fromObject) {
|
|
13857
|
+
function listModelsParametersToVertex(apiClient, fromObject, rootObject) {
|
|
13765
13858
|
const toObject = {};
|
|
13766
13859
|
const fromConfig = getValueByPath(fromObject, ['config']);
|
|
13767
13860
|
if (fromConfig != null) {
|
|
@@ -13769,7 +13862,7 @@ function listModelsParametersToVertex(apiClient, fromObject) {
|
|
|
13769
13862
|
}
|
|
13770
13863
|
return toObject;
|
|
13771
13864
|
}
|
|
13772
|
-
function listModelsResponseFromMldev(fromObject) {
|
|
13865
|
+
function listModelsResponseFromMldev(fromObject, rootObject) {
|
|
13773
13866
|
const toObject = {};
|
|
13774
13867
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13775
13868
|
'sdkHttpResponse',
|
|
@@ -13795,7 +13888,7 @@ function listModelsResponseFromMldev(fromObject) {
|
|
|
13795
13888
|
}
|
|
13796
13889
|
return toObject;
|
|
13797
13890
|
}
|
|
13798
|
-
function listModelsResponseFromVertex(fromObject) {
|
|
13891
|
+
function listModelsResponseFromVertex(fromObject, rootObject) {
|
|
13799
13892
|
const toObject = {};
|
|
13800
13893
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13801
13894
|
'sdkHttpResponse',
|
|
@@ -13821,7 +13914,7 @@ function listModelsResponseFromVertex(fromObject) {
|
|
|
13821
13914
|
}
|
|
13822
13915
|
return toObject;
|
|
13823
13916
|
}
|
|
13824
|
-
function maskReferenceConfigToVertex(fromObject) {
|
|
13917
|
+
function maskReferenceConfigToVertex(fromObject, _rootObject) {
|
|
13825
13918
|
const toObject = {};
|
|
13826
13919
|
const fromMaskMode = getValueByPath(fromObject, ['maskMode']);
|
|
13827
13920
|
if (fromMaskMode != null) {
|
|
@@ -13839,7 +13932,7 @@ function maskReferenceConfigToVertex(fromObject) {
|
|
|
13839
13932
|
}
|
|
13840
13933
|
return toObject;
|
|
13841
13934
|
}
|
|
13842
|
-
function modelFromMldev(fromObject) {
|
|
13935
|
+
function modelFromMldev(fromObject, rootObject) {
|
|
13843
13936
|
const toObject = {};
|
|
13844
13937
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13845
13938
|
if (fromName != null) {
|
|
@@ -13903,7 +13996,7 @@ function modelFromMldev(fromObject) {
|
|
|
13903
13996
|
}
|
|
13904
13997
|
return toObject;
|
|
13905
13998
|
}
|
|
13906
|
-
function modelFromVertex(fromObject) {
|
|
13999
|
+
function modelFromVertex(fromObject, rootObject) {
|
|
13907
14000
|
const toObject = {};
|
|
13908
14001
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13909
14002
|
if (fromName != null) {
|
|
@@ -13957,7 +14050,7 @@ function modelFromVertex(fromObject) {
|
|
|
13957
14050
|
}
|
|
13958
14051
|
return toObject;
|
|
13959
14052
|
}
|
|
13960
|
-
function partToMldev$1(fromObject) {
|
|
14053
|
+
function partToMldev$1(fromObject, rootObject) {
|
|
13961
14054
|
const toObject = {};
|
|
13962
14055
|
const fromMediaResolution = getValueByPath(fromObject, [
|
|
13963
14056
|
'mediaResolution',
|
|
@@ -14017,7 +14110,7 @@ function partToMldev$1(fromObject) {
|
|
|
14017
14110
|
}
|
|
14018
14111
|
return toObject;
|
|
14019
14112
|
}
|
|
14020
|
-
function productImageToVertex(fromObject) {
|
|
14113
|
+
function productImageToVertex(fromObject, rootObject) {
|
|
14021
14114
|
const toObject = {};
|
|
14022
14115
|
const fromProductImage = getValueByPath(fromObject, ['productImage']);
|
|
14023
14116
|
if (fromProductImage != null) {
|
|
@@ -14025,7 +14118,7 @@ function productImageToVertex(fromObject) {
|
|
|
14025
14118
|
}
|
|
14026
14119
|
return toObject;
|
|
14027
14120
|
}
|
|
14028
|
-
function recontextImageConfigToVertex(fromObject, parentObject) {
|
|
14121
|
+
function recontextImageConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
14029
14122
|
const toObject = {};
|
|
14030
14123
|
const fromNumberOfImages = getValueByPath(fromObject, [
|
|
14031
14124
|
'numberOfImages',
|
|
@@ -14085,7 +14178,7 @@ function recontextImageConfigToVertex(fromObject, parentObject) {
|
|
|
14085
14178
|
}
|
|
14086
14179
|
return toObject;
|
|
14087
14180
|
}
|
|
14088
|
-
function recontextImageParametersToVertex(apiClient, fromObject) {
|
|
14181
|
+
function recontextImageParametersToVertex(apiClient, fromObject, rootObject) {
|
|
14089
14182
|
const toObject = {};
|
|
14090
14183
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14091
14184
|
if (fromModel != null) {
|
|
@@ -14101,7 +14194,7 @@ function recontextImageParametersToVertex(apiClient, fromObject) {
|
|
|
14101
14194
|
}
|
|
14102
14195
|
return toObject;
|
|
14103
14196
|
}
|
|
14104
|
-
function recontextImageResponseFromVertex(fromObject) {
|
|
14197
|
+
function recontextImageResponseFromVertex(fromObject, rootObject) {
|
|
14105
14198
|
const toObject = {};
|
|
14106
14199
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
14107
14200
|
'predictions',
|
|
@@ -14117,7 +14210,7 @@ function recontextImageResponseFromVertex(fromObject) {
|
|
|
14117
14210
|
}
|
|
14118
14211
|
return toObject;
|
|
14119
14212
|
}
|
|
14120
|
-
function recontextImageSourceToVertex(fromObject, parentObject) {
|
|
14213
|
+
function recontextImageSourceToVertex(fromObject, parentObject, rootObject) {
|
|
14121
14214
|
const toObject = {};
|
|
14122
14215
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
14123
14216
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -14141,7 +14234,7 @@ function recontextImageSourceToVertex(fromObject, parentObject) {
|
|
|
14141
14234
|
}
|
|
14142
14235
|
return toObject;
|
|
14143
14236
|
}
|
|
14144
|
-
function referenceImageAPIInternalToVertex(fromObject) {
|
|
14237
|
+
function referenceImageAPIInternalToVertex(fromObject, rootObject) {
|
|
14145
14238
|
const toObject = {};
|
|
14146
14239
|
const fromReferenceImage = getValueByPath(fromObject, [
|
|
14147
14240
|
'referenceImage',
|
|
@@ -14185,7 +14278,7 @@ function referenceImageAPIInternalToVertex(fromObject) {
|
|
|
14185
14278
|
}
|
|
14186
14279
|
return toObject;
|
|
14187
14280
|
}
|
|
14188
|
-
function safetyAttributesFromMldev(fromObject) {
|
|
14281
|
+
function safetyAttributesFromMldev(fromObject, _rootObject) {
|
|
14189
14282
|
const toObject = {};
|
|
14190
14283
|
const fromCategories = getValueByPath(fromObject, [
|
|
14191
14284
|
'safetyAttributes',
|
|
@@ -14207,7 +14300,7 @@ function safetyAttributesFromMldev(fromObject) {
|
|
|
14207
14300
|
}
|
|
14208
14301
|
return toObject;
|
|
14209
14302
|
}
|
|
14210
|
-
function safetyAttributesFromVertex(fromObject) {
|
|
14303
|
+
function safetyAttributesFromVertex(fromObject, _rootObject) {
|
|
14211
14304
|
const toObject = {};
|
|
14212
14305
|
const fromCategories = getValueByPath(fromObject, [
|
|
14213
14306
|
'safetyAttributes',
|
|
@@ -14229,7 +14322,7 @@ function safetyAttributesFromVertex(fromObject) {
|
|
|
14229
14322
|
}
|
|
14230
14323
|
return toObject;
|
|
14231
14324
|
}
|
|
14232
|
-
function safetySettingToMldev(fromObject) {
|
|
14325
|
+
function safetySettingToMldev(fromObject, _rootObject) {
|
|
14233
14326
|
const toObject = {};
|
|
14234
14327
|
const fromCategory = getValueByPath(fromObject, ['category']);
|
|
14235
14328
|
if (fromCategory != null) {
|
|
@@ -14244,7 +14337,7 @@ function safetySettingToMldev(fromObject) {
|
|
|
14244
14337
|
}
|
|
14245
14338
|
return toObject;
|
|
14246
14339
|
}
|
|
14247
|
-
function scribbleImageToVertex(fromObject) {
|
|
14340
|
+
function scribbleImageToVertex(fromObject, rootObject) {
|
|
14248
14341
|
const toObject = {};
|
|
14249
14342
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14250
14343
|
if (fromImage != null) {
|
|
@@ -14252,7 +14345,7 @@ function scribbleImageToVertex(fromObject) {
|
|
|
14252
14345
|
}
|
|
14253
14346
|
return toObject;
|
|
14254
14347
|
}
|
|
14255
|
-
function segmentImageConfigToVertex(fromObject, parentObject) {
|
|
14348
|
+
function segmentImageConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
14256
14349
|
const toObject = {};
|
|
14257
14350
|
const fromMode = getValueByPath(fromObject, ['mode']);
|
|
14258
14351
|
if (parentObject !== undefined && fromMode != null) {
|
|
@@ -14286,7 +14379,7 @@ function segmentImageConfigToVertex(fromObject, parentObject) {
|
|
|
14286
14379
|
}
|
|
14287
14380
|
return toObject;
|
|
14288
14381
|
}
|
|
14289
|
-
function segmentImageParametersToVertex(apiClient, fromObject) {
|
|
14382
|
+
function segmentImageParametersToVertex(apiClient, fromObject, rootObject) {
|
|
14290
14383
|
const toObject = {};
|
|
14291
14384
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14292
14385
|
if (fromModel != null) {
|
|
@@ -14302,7 +14395,7 @@ function segmentImageParametersToVertex(apiClient, fromObject) {
|
|
|
14302
14395
|
}
|
|
14303
14396
|
return toObject;
|
|
14304
14397
|
}
|
|
14305
|
-
function segmentImageResponseFromVertex(fromObject) {
|
|
14398
|
+
function segmentImageResponseFromVertex(fromObject, rootObject) {
|
|
14306
14399
|
const toObject = {};
|
|
14307
14400
|
const fromGeneratedMasks = getValueByPath(fromObject, ['predictions']);
|
|
14308
14401
|
if (fromGeneratedMasks != null) {
|
|
@@ -14316,7 +14409,7 @@ function segmentImageResponseFromVertex(fromObject) {
|
|
|
14316
14409
|
}
|
|
14317
14410
|
return toObject;
|
|
14318
14411
|
}
|
|
14319
|
-
function segmentImageSourceToVertex(fromObject, parentObject) {
|
|
14412
|
+
function segmentImageSourceToVertex(fromObject, parentObject, rootObject) {
|
|
14320
14413
|
const toObject = {};
|
|
14321
14414
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
14322
14415
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -14334,7 +14427,7 @@ function segmentImageSourceToVertex(fromObject, parentObject) {
|
|
|
14334
14427
|
}
|
|
14335
14428
|
return toObject;
|
|
14336
14429
|
}
|
|
14337
|
-
function toolConfigToMldev(fromObject) {
|
|
14430
|
+
function toolConfigToMldev(fromObject, rootObject) {
|
|
14338
14431
|
const toObject = {};
|
|
14339
14432
|
const fromRetrievalConfig = getValueByPath(fromObject, [
|
|
14340
14433
|
'retrievalConfig',
|
|
@@ -14350,7 +14443,7 @@ function toolConfigToMldev(fromObject) {
|
|
|
14350
14443
|
}
|
|
14351
14444
|
return toObject;
|
|
14352
14445
|
}
|
|
14353
|
-
function toolToMldev$1(fromObject) {
|
|
14446
|
+
function toolToMldev$1(fromObject, rootObject) {
|
|
14354
14447
|
const toObject = {};
|
|
14355
14448
|
if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
|
|
14356
14449
|
throw new Error('retrieval parameter is not supported in Gemini API.');
|
|
@@ -14404,7 +14497,7 @@ function toolToMldev$1(fromObject) {
|
|
|
14404
14497
|
}
|
|
14405
14498
|
return toObject;
|
|
14406
14499
|
}
|
|
14407
|
-
function toolToVertex(fromObject) {
|
|
14500
|
+
function toolToVertex(fromObject, rootObject) {
|
|
14408
14501
|
const toObject = {};
|
|
14409
14502
|
const fromRetrieval = getValueByPath(fromObject, ['retrieval']);
|
|
14410
14503
|
if (fromRetrieval != null) {
|
|
@@ -14461,7 +14554,7 @@ function toolToVertex(fromObject) {
|
|
|
14461
14554
|
}
|
|
14462
14555
|
return toObject;
|
|
14463
14556
|
}
|
|
14464
|
-
function tunedModelInfoFromMldev(fromObject) {
|
|
14557
|
+
function tunedModelInfoFromMldev(fromObject, _rootObject) {
|
|
14465
14558
|
const toObject = {};
|
|
14466
14559
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
14467
14560
|
if (fromBaseModel != null) {
|
|
@@ -14477,7 +14570,7 @@ function tunedModelInfoFromMldev(fromObject) {
|
|
|
14477
14570
|
}
|
|
14478
14571
|
return toObject;
|
|
14479
14572
|
}
|
|
14480
|
-
function tunedModelInfoFromVertex(fromObject) {
|
|
14573
|
+
function tunedModelInfoFromVertex(fromObject, _rootObject) {
|
|
14481
14574
|
const toObject = {};
|
|
14482
14575
|
const fromBaseModel = getValueByPath(fromObject, [
|
|
14483
14576
|
'labels',
|
|
@@ -14496,7 +14589,7 @@ function tunedModelInfoFromVertex(fromObject) {
|
|
|
14496
14589
|
}
|
|
14497
14590
|
return toObject;
|
|
14498
14591
|
}
|
|
14499
|
-
function updateModelConfigToMldev(fromObject, parentObject) {
|
|
14592
|
+
function updateModelConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
14500
14593
|
const toObject = {};
|
|
14501
14594
|
const fromDisplayName = getValueByPath(fromObject, ['displayName']);
|
|
14502
14595
|
if (parentObject !== undefined && fromDisplayName != null) {
|
|
@@ -14514,7 +14607,7 @@ function updateModelConfigToMldev(fromObject, parentObject) {
|
|
|
14514
14607
|
}
|
|
14515
14608
|
return toObject;
|
|
14516
14609
|
}
|
|
14517
|
-
function updateModelConfigToVertex(fromObject, parentObject) {
|
|
14610
|
+
function updateModelConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
14518
14611
|
const toObject = {};
|
|
14519
14612
|
const fromDisplayName = getValueByPath(fromObject, ['displayName']);
|
|
14520
14613
|
if (parentObject !== undefined && fromDisplayName != null) {
|
|
@@ -14532,7 +14625,7 @@ function updateModelConfigToVertex(fromObject, parentObject) {
|
|
|
14532
14625
|
}
|
|
14533
14626
|
return toObject;
|
|
14534
14627
|
}
|
|
14535
|
-
function updateModelParametersToMldev(apiClient, fromObject) {
|
|
14628
|
+
function updateModelParametersToMldev(apiClient, fromObject, rootObject) {
|
|
14536
14629
|
const toObject = {};
|
|
14537
14630
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14538
14631
|
if (fromModel != null) {
|
|
@@ -14544,7 +14637,7 @@ function updateModelParametersToMldev(apiClient, fromObject) {
|
|
|
14544
14637
|
}
|
|
14545
14638
|
return toObject;
|
|
14546
14639
|
}
|
|
14547
|
-
function updateModelParametersToVertex(apiClient, fromObject) {
|
|
14640
|
+
function updateModelParametersToVertex(apiClient, fromObject, rootObject) {
|
|
14548
14641
|
const toObject = {};
|
|
14549
14642
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14550
14643
|
if (fromModel != null) {
|
|
@@ -14556,7 +14649,7 @@ function updateModelParametersToVertex(apiClient, fromObject) {
|
|
|
14556
14649
|
}
|
|
14557
14650
|
return toObject;
|
|
14558
14651
|
}
|
|
14559
|
-
function upscaleImageAPIConfigInternalToVertex(fromObject, parentObject) {
|
|
14652
|
+
function upscaleImageAPIConfigInternalToVertex(fromObject, parentObject, _rootObject) {
|
|
14560
14653
|
const toObject = {};
|
|
14561
14654
|
const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);
|
|
14562
14655
|
if (parentObject !== undefined && fromOutputGcsUri != null) {
|
|
@@ -14620,7 +14713,7 @@ function upscaleImageAPIConfigInternalToVertex(fromObject, parentObject) {
|
|
|
14620
14713
|
}
|
|
14621
14714
|
return toObject;
|
|
14622
14715
|
}
|
|
14623
|
-
function upscaleImageAPIParametersInternalToVertex(apiClient, fromObject) {
|
|
14716
|
+
function upscaleImageAPIParametersInternalToVertex(apiClient, fromObject, rootObject) {
|
|
14624
14717
|
const toObject = {};
|
|
14625
14718
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14626
14719
|
if (fromModel != null) {
|
|
@@ -14642,7 +14735,7 @@ function upscaleImageAPIParametersInternalToVertex(apiClient, fromObject) {
|
|
|
14642
14735
|
}
|
|
14643
14736
|
return toObject;
|
|
14644
14737
|
}
|
|
14645
|
-
function upscaleImageResponseFromVertex(fromObject) {
|
|
14738
|
+
function upscaleImageResponseFromVertex(fromObject, rootObject) {
|
|
14646
14739
|
const toObject = {};
|
|
14647
14740
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
14648
14741
|
'sdkHttpResponse',
|
|
@@ -14664,7 +14757,7 @@ function upscaleImageResponseFromVertex(fromObject) {
|
|
|
14664
14757
|
}
|
|
14665
14758
|
return toObject;
|
|
14666
14759
|
}
|
|
14667
|
-
function videoFromMldev(fromObject) {
|
|
14760
|
+
function videoFromMldev(fromObject, _rootObject) {
|
|
14668
14761
|
const toObject = {};
|
|
14669
14762
|
const fromUri = getValueByPath(fromObject, ['uri']);
|
|
14670
14763
|
if (fromUri != null) {
|
|
@@ -14680,7 +14773,7 @@ function videoFromMldev(fromObject) {
|
|
|
14680
14773
|
}
|
|
14681
14774
|
return toObject;
|
|
14682
14775
|
}
|
|
14683
|
-
function videoFromVertex(fromObject) {
|
|
14776
|
+
function videoFromVertex(fromObject, _rootObject) {
|
|
14684
14777
|
const toObject = {};
|
|
14685
14778
|
const fromUri = getValueByPath(fromObject, ['gcsUri']);
|
|
14686
14779
|
if (fromUri != null) {
|
|
@@ -14698,7 +14791,7 @@ function videoFromVertex(fromObject) {
|
|
|
14698
14791
|
}
|
|
14699
14792
|
return toObject;
|
|
14700
14793
|
}
|
|
14701
|
-
function videoGenerationMaskToVertex(fromObject) {
|
|
14794
|
+
function videoGenerationMaskToVertex(fromObject, rootObject) {
|
|
14702
14795
|
const toObject = {};
|
|
14703
14796
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14704
14797
|
if (fromImage != null) {
|
|
@@ -14710,7 +14803,7 @@ function videoGenerationMaskToVertex(fromObject) {
|
|
|
14710
14803
|
}
|
|
14711
14804
|
return toObject;
|
|
14712
14805
|
}
|
|
14713
|
-
function videoGenerationReferenceImageToMldev(fromObject) {
|
|
14806
|
+
function videoGenerationReferenceImageToMldev(fromObject, rootObject) {
|
|
14714
14807
|
const toObject = {};
|
|
14715
14808
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14716
14809
|
if (fromImage != null) {
|
|
@@ -14724,7 +14817,7 @@ function videoGenerationReferenceImageToMldev(fromObject) {
|
|
|
14724
14817
|
}
|
|
14725
14818
|
return toObject;
|
|
14726
14819
|
}
|
|
14727
|
-
function videoGenerationReferenceImageToVertex(fromObject) {
|
|
14820
|
+
function videoGenerationReferenceImageToVertex(fromObject, rootObject) {
|
|
14728
14821
|
const toObject = {};
|
|
14729
14822
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14730
14823
|
if (fromImage != null) {
|
|
@@ -14738,7 +14831,7 @@ function videoGenerationReferenceImageToVertex(fromObject) {
|
|
|
14738
14831
|
}
|
|
14739
14832
|
return toObject;
|
|
14740
14833
|
}
|
|
14741
|
-
function videoToMldev(fromObject) {
|
|
14834
|
+
function videoToMldev(fromObject, _rootObject) {
|
|
14742
14835
|
const toObject = {};
|
|
14743
14836
|
const fromUri = getValueByPath(fromObject, ['uri']);
|
|
14744
14837
|
if (fromUri != null) {
|
|
@@ -14754,7 +14847,7 @@ function videoToMldev(fromObject) {
|
|
|
14754
14847
|
}
|
|
14755
14848
|
return toObject;
|
|
14756
14849
|
}
|
|
14757
|
-
function videoToVertex(fromObject) {
|
|
14850
|
+
function videoToVertex(fromObject, _rootObject) {
|
|
14758
14851
|
const toObject = {};
|
|
14759
14852
|
const fromUri = getValueByPath(fromObject, ['uri']);
|
|
14760
14853
|
if (fromUri != null) {
|
|
@@ -16310,7 +16403,7 @@ class Models extends BaseModule {
|
|
|
16310
16403
|
_c = apiResponse_1_1.value;
|
|
16311
16404
|
_d = false;
|
|
16312
16405
|
const chunk = _c;
|
|
16313
|
-
const resp = generateContentResponseFromVertex((yield __await(chunk.json())));
|
|
16406
|
+
const resp = generateContentResponseFromVertex((yield __await(chunk.json())), params);
|
|
16314
16407
|
resp['sdkHttpResponse'] = {
|
|
16315
16408
|
headers: chunk.headers,
|
|
16316
16409
|
};
|
|
@@ -16352,7 +16445,7 @@ class Models extends BaseModule {
|
|
|
16352
16445
|
_c = apiResponse_2_1.value;
|
|
16353
16446
|
_d = false;
|
|
16354
16447
|
const chunk = _c;
|
|
16355
|
-
const resp = generateContentResponseFromMldev((yield __await(chunk.json())));
|
|
16448
|
+
const resp = generateContentResponseFromMldev((yield __await(chunk.json())), params);
|
|
16356
16449
|
resp['sdkHttpResponse'] = {
|
|
16357
16450
|
headers: chunk.headers,
|
|
16358
16451
|
};
|
|
@@ -18126,6 +18219,12 @@ function createTuningJobConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
|
18126
18219
|
if (getValueByPath(fromObject, ['adapterSize']) !== undefined) {
|
|
18127
18220
|
throw new Error('adapterSize parameter is not supported in Gemini API.');
|
|
18128
18221
|
}
|
|
18222
|
+
if (getValueByPath(fromObject, ['tuningMode']) !== undefined) {
|
|
18223
|
+
throw new Error('tuningMode parameter is not supported in Gemini API.');
|
|
18224
|
+
}
|
|
18225
|
+
if (getValueByPath(fromObject, ['customBaseModel']) !== undefined) {
|
|
18226
|
+
throw new Error('customBaseModel parameter is not supported in Gemini API.');
|
|
18227
|
+
}
|
|
18129
18228
|
const fromBatchSize = getValueByPath(fromObject, ['batchSize']);
|
|
18130
18229
|
if (parentObject !== undefined && fromBatchSize != null) {
|
|
18131
18230
|
setValueByPath(parentObject, ['tuningTask', 'hyperparameters', 'batchSize'], fromBatchSize);
|
|
@@ -18140,6 +18239,18 @@ function createTuningJobConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
|
18140
18239
|
if (getValueByPath(fromObject, ['beta']) !== undefined) {
|
|
18141
18240
|
throw new Error('beta parameter is not supported in Gemini API.');
|
|
18142
18241
|
}
|
|
18242
|
+
if (getValueByPath(fromObject, ['baseTeacherModel']) !== undefined) {
|
|
18243
|
+
throw new Error('baseTeacherModel parameter is not supported in Gemini API.');
|
|
18244
|
+
}
|
|
18245
|
+
if (getValueByPath(fromObject, ['tunedTeacherModelSource']) !== undefined) {
|
|
18246
|
+
throw new Error('tunedTeacherModelSource parameter is not supported in Gemini API.');
|
|
18247
|
+
}
|
|
18248
|
+
if (getValueByPath(fromObject, ['sftLossWeightMultiplier']) !== undefined) {
|
|
18249
|
+
throw new Error('sftLossWeightMultiplier parameter is not supported in Gemini API.');
|
|
18250
|
+
}
|
|
18251
|
+
if (getValueByPath(fromObject, ['outputUri']) !== undefined) {
|
|
18252
|
+
throw new Error('outputUri parameter is not supported in Gemini API.');
|
|
18253
|
+
}
|
|
18143
18254
|
return toObject;
|
|
18144
18255
|
}
|
|
18145
18256
|
function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
@@ -18167,6 +18278,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18167
18278
|
setValueByPath(parentObject, ['preferenceOptimizationSpec'], tuningValidationDatasetToVertex(fromValidationDataset));
|
|
18168
18279
|
}
|
|
18169
18280
|
}
|
|
18281
|
+
else if (discriminatorValidationDataset === 'DISTILLATION') {
|
|
18282
|
+
const fromValidationDataset = getValueByPath(fromObject, [
|
|
18283
|
+
'validationDataset',
|
|
18284
|
+
]);
|
|
18285
|
+
if (parentObject !== undefined && fromValidationDataset != null) {
|
|
18286
|
+
setValueByPath(parentObject, ['distillationSpec'], tuningValidationDatasetToVertex(fromValidationDataset));
|
|
18287
|
+
}
|
|
18288
|
+
}
|
|
18170
18289
|
const fromTunedModelDisplayName = getValueByPath(fromObject, [
|
|
18171
18290
|
'tunedModelDisplayName',
|
|
18172
18291
|
]);
|
|
@@ -18196,6 +18315,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18196
18315
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'epochCount'], fromEpochCount);
|
|
18197
18316
|
}
|
|
18198
18317
|
}
|
|
18318
|
+
else if (discriminatorEpochCount === 'DISTILLATION') {
|
|
18319
|
+
const fromEpochCount = getValueByPath(fromObject, ['epochCount']);
|
|
18320
|
+
if (parentObject !== undefined && fromEpochCount != null) {
|
|
18321
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'epochCount'], fromEpochCount);
|
|
18322
|
+
}
|
|
18323
|
+
}
|
|
18199
18324
|
let discriminatorLearningRateMultiplier = getValueByPath(rootObject, [
|
|
18200
18325
|
'config',
|
|
18201
18326
|
'method',
|
|
@@ -18223,6 +18348,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18223
18348
|
], fromLearningRateMultiplier);
|
|
18224
18349
|
}
|
|
18225
18350
|
}
|
|
18351
|
+
else if (discriminatorLearningRateMultiplier === 'DISTILLATION') {
|
|
18352
|
+
const fromLearningRateMultiplier = getValueByPath(fromObject, [
|
|
18353
|
+
'learningRateMultiplier',
|
|
18354
|
+
]);
|
|
18355
|
+
if (parentObject !== undefined && fromLearningRateMultiplier != null) {
|
|
18356
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'learningRateMultiplier'], fromLearningRateMultiplier);
|
|
18357
|
+
}
|
|
18358
|
+
}
|
|
18226
18359
|
let discriminatorExportLastCheckpointOnly = getValueByPath(rootObject, ['config', 'method']);
|
|
18227
18360
|
if (discriminatorExportLastCheckpointOnly === undefined) {
|
|
18228
18361
|
discriminatorExportLastCheckpointOnly = 'SUPERVISED_FINE_TUNING';
|
|
@@ -18243,6 +18376,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18243
18376
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
18244
18377
|
}
|
|
18245
18378
|
}
|
|
18379
|
+
else if (discriminatorExportLastCheckpointOnly === 'DISTILLATION') {
|
|
18380
|
+
const fromExportLastCheckpointOnly = getValueByPath(fromObject, [
|
|
18381
|
+
'exportLastCheckpointOnly',
|
|
18382
|
+
]);
|
|
18383
|
+
if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {
|
|
18384
|
+
setValueByPath(parentObject, ['distillationSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
18385
|
+
}
|
|
18386
|
+
}
|
|
18246
18387
|
let discriminatorAdapterSize = getValueByPath(rootObject, [
|
|
18247
18388
|
'config',
|
|
18248
18389
|
'method',
|
|
@@ -18262,11 +18403,58 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18262
18403
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
18263
18404
|
}
|
|
18264
18405
|
}
|
|
18265
|
-
if (
|
|
18266
|
-
|
|
18406
|
+
else if (discriminatorAdapterSize === 'DISTILLATION') {
|
|
18407
|
+
const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);
|
|
18408
|
+
if (parentObject !== undefined && fromAdapterSize != null) {
|
|
18409
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
18410
|
+
}
|
|
18267
18411
|
}
|
|
18268
|
-
|
|
18269
|
-
|
|
18412
|
+
let discriminatorTuningMode = getValueByPath(rootObject, [
|
|
18413
|
+
'config',
|
|
18414
|
+
'method',
|
|
18415
|
+
]);
|
|
18416
|
+
if (discriminatorTuningMode === undefined) {
|
|
18417
|
+
discriminatorTuningMode = 'SUPERVISED_FINE_TUNING';
|
|
18418
|
+
}
|
|
18419
|
+
if (discriminatorTuningMode === 'SUPERVISED_FINE_TUNING') {
|
|
18420
|
+
const fromTuningMode = getValueByPath(fromObject, ['tuningMode']);
|
|
18421
|
+
if (parentObject !== undefined && fromTuningMode != null) {
|
|
18422
|
+
setValueByPath(parentObject, ['supervisedTuningSpec', 'tuningMode'], fromTuningMode);
|
|
18423
|
+
}
|
|
18424
|
+
}
|
|
18425
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
18426
|
+
'customBaseModel',
|
|
18427
|
+
]);
|
|
18428
|
+
if (parentObject !== undefined && fromCustomBaseModel != null) {
|
|
18429
|
+
setValueByPath(parentObject, ['customBaseModel'], fromCustomBaseModel);
|
|
18430
|
+
}
|
|
18431
|
+
let discriminatorBatchSize = getValueByPath(rootObject, [
|
|
18432
|
+
'config',
|
|
18433
|
+
'method',
|
|
18434
|
+
]);
|
|
18435
|
+
if (discriminatorBatchSize === undefined) {
|
|
18436
|
+
discriminatorBatchSize = 'SUPERVISED_FINE_TUNING';
|
|
18437
|
+
}
|
|
18438
|
+
if (discriminatorBatchSize === 'SUPERVISED_FINE_TUNING') {
|
|
18439
|
+
const fromBatchSize = getValueByPath(fromObject, ['batchSize']);
|
|
18440
|
+
if (parentObject !== undefined && fromBatchSize != null) {
|
|
18441
|
+
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'batchSize'], fromBatchSize);
|
|
18442
|
+
}
|
|
18443
|
+
}
|
|
18444
|
+
let discriminatorLearningRate = getValueByPath(rootObject, [
|
|
18445
|
+
'config',
|
|
18446
|
+
'method',
|
|
18447
|
+
]);
|
|
18448
|
+
if (discriminatorLearningRate === undefined) {
|
|
18449
|
+
discriminatorLearningRate = 'SUPERVISED_FINE_TUNING';
|
|
18450
|
+
}
|
|
18451
|
+
if (discriminatorLearningRate === 'SUPERVISED_FINE_TUNING') {
|
|
18452
|
+
const fromLearningRate = getValueByPath(fromObject, [
|
|
18453
|
+
'learningRate',
|
|
18454
|
+
]);
|
|
18455
|
+
if (parentObject !== undefined && fromLearningRate != null) {
|
|
18456
|
+
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'learningRate'], fromLearningRate);
|
|
18457
|
+
}
|
|
18270
18458
|
}
|
|
18271
18459
|
const fromLabels = getValueByPath(fromObject, ['labels']);
|
|
18272
18460
|
if (parentObject !== undefined && fromLabels != null) {
|
|
@@ -18276,6 +18464,28 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18276
18464
|
if (parentObject !== undefined && fromBeta != null) {
|
|
18277
18465
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'beta'], fromBeta);
|
|
18278
18466
|
}
|
|
18467
|
+
const fromBaseTeacherModel = getValueByPath(fromObject, [
|
|
18468
|
+
'baseTeacherModel',
|
|
18469
|
+
]);
|
|
18470
|
+
if (parentObject !== undefined && fromBaseTeacherModel != null) {
|
|
18471
|
+
setValueByPath(parentObject, ['distillationSpec', 'baseTeacherModel'], fromBaseTeacherModel);
|
|
18472
|
+
}
|
|
18473
|
+
const fromTunedTeacherModelSource = getValueByPath(fromObject, [
|
|
18474
|
+
'tunedTeacherModelSource',
|
|
18475
|
+
]);
|
|
18476
|
+
if (parentObject !== undefined && fromTunedTeacherModelSource != null) {
|
|
18477
|
+
setValueByPath(parentObject, ['distillationSpec', 'tunedTeacherModelSource'], fromTunedTeacherModelSource);
|
|
18478
|
+
}
|
|
18479
|
+
const fromSftLossWeightMultiplier = getValueByPath(fromObject, [
|
|
18480
|
+
'sftLossWeightMultiplier',
|
|
18481
|
+
]);
|
|
18482
|
+
if (parentObject !== undefined && fromSftLossWeightMultiplier != null) {
|
|
18483
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'sftLossWeightMultiplier'], fromSftLossWeightMultiplier);
|
|
18484
|
+
}
|
|
18485
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
18486
|
+
if (parentObject !== undefined && fromOutputUri != null) {
|
|
18487
|
+
setValueByPath(parentObject, ['outputUri'], fromOutputUri);
|
|
18488
|
+
}
|
|
18279
18489
|
return toObject;
|
|
18280
18490
|
}
|
|
18281
18491
|
function createTuningJobParametersPrivateToMldev(fromObject, rootObject) {
|
|
@@ -18495,6 +18705,12 @@ function tuningDatasetToVertex(fromObject, parentObject, rootObject) {
|
|
|
18495
18705
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'trainingDatasetUri'], fromGcsUri);
|
|
18496
18706
|
}
|
|
18497
18707
|
}
|
|
18708
|
+
else if (discriminatorGcsUri === 'DISTILLATION') {
|
|
18709
|
+
const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);
|
|
18710
|
+
if (parentObject !== undefined && fromGcsUri != null) {
|
|
18711
|
+
setValueByPath(parentObject, ['distillationSpec', 'promptDatasetUri'], fromGcsUri);
|
|
18712
|
+
}
|
|
18713
|
+
}
|
|
18498
18714
|
let discriminatorVertexDatasetResource = getValueByPath(rootObject, [
|
|
18499
18715
|
'config',
|
|
18500
18716
|
'method',
|
|
@@ -18518,6 +18734,14 @@ function tuningDatasetToVertex(fromObject, parentObject, rootObject) {
|
|
|
18518
18734
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'trainingDatasetUri'], fromVertexDatasetResource);
|
|
18519
18735
|
}
|
|
18520
18736
|
}
|
|
18737
|
+
else if (discriminatorVertexDatasetResource === 'DISTILLATION') {
|
|
18738
|
+
const fromVertexDatasetResource = getValueByPath(fromObject, [
|
|
18739
|
+
'vertexDatasetResource',
|
|
18740
|
+
]);
|
|
18741
|
+
if (parentObject !== undefined && fromVertexDatasetResource != null) {
|
|
18742
|
+
setValueByPath(parentObject, ['distillationSpec', 'promptDatasetUri'], fromVertexDatasetResource);
|
|
18743
|
+
}
|
|
18744
|
+
}
|
|
18521
18745
|
if (getValueByPath(fromObject, ['examples']) !== undefined) {
|
|
18522
18746
|
throw new Error('examples parameter is not supported in Vertex AI.');
|
|
18523
18747
|
}
|
|
@@ -18641,6 +18865,12 @@ function tuningJobFromVertex(fromObject, _rootObject) {
|
|
|
18641
18865
|
if (fromPreferenceOptimizationSpec != null) {
|
|
18642
18866
|
setValueByPath(toObject, ['preferenceOptimizationSpec'], fromPreferenceOptimizationSpec);
|
|
18643
18867
|
}
|
|
18868
|
+
const fromDistillationSpec = getValueByPath(fromObject, [
|
|
18869
|
+
'distillationSpec',
|
|
18870
|
+
]);
|
|
18871
|
+
if (fromDistillationSpec != null) {
|
|
18872
|
+
setValueByPath(toObject, ['distillationSpec'], fromDistillationSpec);
|
|
18873
|
+
}
|
|
18644
18874
|
const fromTuningDataStats = getValueByPath(fromObject, [
|
|
18645
18875
|
'tuningDataStats',
|
|
18646
18876
|
]);
|
|
@@ -19290,6 +19520,7 @@ exports.Operations = Operations;
|
|
|
19290
19520
|
exports.Pager = Pager;
|
|
19291
19521
|
exports.RawReferenceImage = RawReferenceImage;
|
|
19292
19522
|
exports.RecontextImageResponse = RecontextImageResponse;
|
|
19523
|
+
exports.RegisterFilesResponse = RegisterFilesResponse;
|
|
19293
19524
|
exports.ReplayResponse = ReplayResponse;
|
|
19294
19525
|
exports.SegmentImageResponse = SegmentImageResponse;
|
|
19295
19526
|
exports.Session = Session;
|