@google/genai 1.11.0 → 1.12.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 +18 -0
- package/dist/index.cjs +171 -19
- package/dist/index.mjs +171 -19
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +171 -19
- package/dist/node/index.mjs +171 -19
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +18 -0
- package/dist/web/index.mjs +171 -19
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +18 -0
- package/package.json +4 -4
package/dist/node/index.mjs
CHANGED
|
@@ -1754,8 +1754,8 @@ class GenerateVideosOperation {
|
|
|
1754
1754
|
},
|
|
1755
1755
|
};
|
|
1756
1756
|
});
|
|
1757
|
-
operationResponse.raiMediaFilteredCount =
|
|
1758
|
-
operationResponse.raiMediaFilteredReasons =
|
|
1757
|
+
operationResponse.raiMediaFilteredCount = generatedVideoResponse === null || generatedVideoResponse === void 0 ? void 0 : generatedVideoResponse['raiMediaFilteredCount'];
|
|
1758
|
+
operationResponse.raiMediaFilteredReasons = generatedVideoResponse === null || generatedVideoResponse === void 0 ? void 0 : generatedVideoResponse['raiMediaFilteredReasons'];
|
|
1759
1759
|
operation.response = operationResponse;
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
@@ -11961,6 +11961,12 @@ function embedContentMetadataFromMldev() {
|
|
|
11961
11961
|
}
|
|
11962
11962
|
function embedContentResponseFromMldev(fromObject) {
|
|
11963
11963
|
const toObject = {};
|
|
11964
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11965
|
+
'sdkHttpResponse',
|
|
11966
|
+
]);
|
|
11967
|
+
if (fromSdkHttpResponse != null) {
|
|
11968
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
11969
|
+
}
|
|
11964
11970
|
const fromEmbeddings = getValueByPath(fromObject, ['embeddings']);
|
|
11965
11971
|
if (fromEmbeddings != null) {
|
|
11966
11972
|
let transformedList = fromEmbeddings;
|
|
@@ -12033,6 +12039,12 @@ function generatedImageFromMldev(fromObject) {
|
|
|
12033
12039
|
}
|
|
12034
12040
|
function generateImagesResponseFromMldev(fromObject) {
|
|
12035
12041
|
const toObject = {};
|
|
12042
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12043
|
+
'sdkHttpResponse',
|
|
12044
|
+
]);
|
|
12045
|
+
if (fromSdkHttpResponse != null) {
|
|
12046
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12047
|
+
}
|
|
12036
12048
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12037
12049
|
'predictions',
|
|
12038
12050
|
]);
|
|
@@ -12143,6 +12155,12 @@ function deleteModelResponseFromMldev() {
|
|
|
12143
12155
|
}
|
|
12144
12156
|
function countTokensResponseFromMldev(fromObject) {
|
|
12145
12157
|
const toObject = {};
|
|
12158
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12159
|
+
'sdkHttpResponse',
|
|
12160
|
+
]);
|
|
12161
|
+
if (fromSdkHttpResponse != null) {
|
|
12162
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12163
|
+
}
|
|
12146
12164
|
const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);
|
|
12147
12165
|
if (fromTotalTokens != null) {
|
|
12148
12166
|
setValueByPath(toObject, ['totalTokens'], fromTotalTokens);
|
|
@@ -12529,6 +12547,12 @@ function embedContentMetadataFromVertex(fromObject) {
|
|
|
12529
12547
|
}
|
|
12530
12548
|
function embedContentResponseFromVertex(fromObject) {
|
|
12531
12549
|
const toObject = {};
|
|
12550
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12551
|
+
'sdkHttpResponse',
|
|
12552
|
+
]);
|
|
12553
|
+
if (fromSdkHttpResponse != null) {
|
|
12554
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12555
|
+
}
|
|
12532
12556
|
const fromEmbeddings = getValueByPath(fromObject, [
|
|
12533
12557
|
'predictions[]',
|
|
12534
12558
|
'embeddings',
|
|
@@ -12612,6 +12636,12 @@ function generatedImageFromVertex(fromObject) {
|
|
|
12612
12636
|
}
|
|
12613
12637
|
function generateImagesResponseFromVertex(fromObject) {
|
|
12614
12638
|
const toObject = {};
|
|
12639
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12640
|
+
'sdkHttpResponse',
|
|
12641
|
+
]);
|
|
12642
|
+
if (fromSdkHttpResponse != null) {
|
|
12643
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12644
|
+
}
|
|
12615
12645
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12616
12646
|
'predictions',
|
|
12617
12647
|
]);
|
|
@@ -12634,6 +12664,12 @@ function generateImagesResponseFromVertex(fromObject) {
|
|
|
12634
12664
|
}
|
|
12635
12665
|
function editImageResponseFromVertex(fromObject) {
|
|
12636
12666
|
const toObject = {};
|
|
12667
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12668
|
+
'sdkHttpResponse',
|
|
12669
|
+
]);
|
|
12670
|
+
if (fromSdkHttpResponse != null) {
|
|
12671
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12672
|
+
}
|
|
12637
12673
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12638
12674
|
'predictions',
|
|
12639
12675
|
]);
|
|
@@ -12650,6 +12686,12 @@ function editImageResponseFromVertex(fromObject) {
|
|
|
12650
12686
|
}
|
|
12651
12687
|
function upscaleImageResponseFromVertex(fromObject) {
|
|
12652
12688
|
const toObject = {};
|
|
12689
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12690
|
+
'sdkHttpResponse',
|
|
12691
|
+
]);
|
|
12692
|
+
if (fromSdkHttpResponse != null) {
|
|
12693
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12694
|
+
}
|
|
12653
12695
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12654
12696
|
'predictions',
|
|
12655
12697
|
]);
|
|
@@ -12799,6 +12841,12 @@ function deleteModelResponseFromVertex() {
|
|
|
12799
12841
|
}
|
|
12800
12842
|
function countTokensResponseFromVertex(fromObject) {
|
|
12801
12843
|
const toObject = {};
|
|
12844
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12845
|
+
'sdkHttpResponse',
|
|
12846
|
+
]);
|
|
12847
|
+
if (fromSdkHttpResponse != null) {
|
|
12848
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12849
|
+
}
|
|
12802
12850
|
const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);
|
|
12803
12851
|
if (fromTotalTokens != null) {
|
|
12804
12852
|
setValueByPath(toObject, ['totalTokens'], fromTotalTokens);
|
|
@@ -12807,6 +12855,12 @@ function countTokensResponseFromVertex(fromObject) {
|
|
|
12807
12855
|
}
|
|
12808
12856
|
function computeTokensResponseFromVertex(fromObject) {
|
|
12809
12857
|
const toObject = {};
|
|
12858
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12859
|
+
'sdkHttpResponse',
|
|
12860
|
+
]);
|
|
12861
|
+
if (fromSdkHttpResponse != null) {
|
|
12862
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12863
|
+
}
|
|
12810
12864
|
const fromTokensInfo = getValueByPath(fromObject, ['tokensInfo']);
|
|
12811
12865
|
if (fromTokensInfo != null) {
|
|
12812
12866
|
setValueByPath(toObject, ['tokensInfo'], fromTokensInfo);
|
|
@@ -12899,7 +12953,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
12899
12953
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
12900
12954
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
12901
12955
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
12902
|
-
const SDK_VERSION = '1.
|
|
12956
|
+
const SDK_VERSION = '1.12.0'; // x-release-please-version
|
|
12903
12957
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
12904
12958
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
12905
12959
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -13985,13 +14039,13 @@ class Live {
|
|
|
13985
14039
|
const websocketBaseUrl = this.apiClient.getWebsocketBaseUrl();
|
|
13986
14040
|
const apiVersion = this.apiClient.getApiVersion();
|
|
13987
14041
|
let url;
|
|
13988
|
-
const
|
|
14042
|
+
const clientHeaders = this.apiClient.getHeaders();
|
|
13989
14043
|
if (params.config &&
|
|
13990
14044
|
params.config.tools &&
|
|
13991
14045
|
hasMcpToolUsage(params.config.tools)) {
|
|
13992
|
-
setMcpUsageHeader(
|
|
14046
|
+
setMcpUsageHeader(clientHeaders);
|
|
13993
14047
|
}
|
|
13994
|
-
const headers = mapToHeaders(
|
|
14048
|
+
const headers = mapToHeaders(clientHeaders);
|
|
13995
14049
|
if (this.apiClient.isVertexAI()) {
|
|
13996
14050
|
url = `${websocketBaseUrl}/ws/google.cloud.aiplatform.${apiVersion}.LlmBidiService/BidiGenerateContent`;
|
|
13997
14051
|
await this.auth.addAuthHeaders(headers);
|
|
@@ -14558,11 +14612,13 @@ class Models extends BaseModule {
|
|
|
14558
14612
|
response = {
|
|
14559
14613
|
generatedImages: generatedImages,
|
|
14560
14614
|
positivePromptSafetyAttributes: positivePromptSafetyAttributes,
|
|
14615
|
+
sdkHttpResponse: apiResponse.sdkHttpResponse,
|
|
14561
14616
|
};
|
|
14562
14617
|
}
|
|
14563
14618
|
else {
|
|
14564
14619
|
response = {
|
|
14565
14620
|
generatedImages: generatedImages,
|
|
14621
|
+
sdkHttpResponse: apiResponse.sdkHttpResponse,
|
|
14566
14622
|
};
|
|
14567
14623
|
}
|
|
14568
14624
|
return response;
|
|
@@ -15048,7 +15104,13 @@ class Models extends BaseModule {
|
|
|
15048
15104
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15049
15105
|
})
|
|
15050
15106
|
.then((httpResponse) => {
|
|
15051
|
-
return httpResponse.json()
|
|
15107
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15108
|
+
const response = jsonResponse;
|
|
15109
|
+
response.sdkHttpResponse = {
|
|
15110
|
+
headers: httpResponse.headers,
|
|
15111
|
+
};
|
|
15112
|
+
return response;
|
|
15113
|
+
});
|
|
15052
15114
|
});
|
|
15053
15115
|
return response.then((apiResponse) => {
|
|
15054
15116
|
const resp = embedContentResponseFromVertex(apiResponse);
|
|
@@ -15074,7 +15136,13 @@ class Models extends BaseModule {
|
|
|
15074
15136
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15075
15137
|
})
|
|
15076
15138
|
.then((httpResponse) => {
|
|
15077
|
-
return httpResponse.json()
|
|
15139
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15140
|
+
const response = jsonResponse;
|
|
15141
|
+
response.sdkHttpResponse = {
|
|
15142
|
+
headers: httpResponse.headers,
|
|
15143
|
+
};
|
|
15144
|
+
return response;
|
|
15145
|
+
});
|
|
15078
15146
|
});
|
|
15079
15147
|
return response.then((apiResponse) => {
|
|
15080
15148
|
const resp = embedContentResponseFromMldev(apiResponse);
|
|
@@ -15125,7 +15193,13 @@ class Models extends BaseModule {
|
|
|
15125
15193
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15126
15194
|
})
|
|
15127
15195
|
.then((httpResponse) => {
|
|
15128
|
-
return httpResponse.json()
|
|
15196
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15197
|
+
const response = jsonResponse;
|
|
15198
|
+
response.sdkHttpResponse = {
|
|
15199
|
+
headers: httpResponse.headers,
|
|
15200
|
+
};
|
|
15201
|
+
return response;
|
|
15202
|
+
});
|
|
15129
15203
|
});
|
|
15130
15204
|
return response.then((apiResponse) => {
|
|
15131
15205
|
const resp = generateImagesResponseFromVertex(apiResponse);
|
|
@@ -15151,7 +15225,13 @@ class Models extends BaseModule {
|
|
|
15151
15225
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15152
15226
|
})
|
|
15153
15227
|
.then((httpResponse) => {
|
|
15154
|
-
return httpResponse.json()
|
|
15228
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15229
|
+
const response = jsonResponse;
|
|
15230
|
+
response.sdkHttpResponse = {
|
|
15231
|
+
headers: httpResponse.headers,
|
|
15232
|
+
};
|
|
15233
|
+
return response;
|
|
15234
|
+
});
|
|
15155
15235
|
});
|
|
15156
15236
|
return response.then((apiResponse) => {
|
|
15157
15237
|
const resp = generateImagesResponseFromMldev(apiResponse);
|
|
@@ -15183,7 +15263,13 @@ class Models extends BaseModule {
|
|
|
15183
15263
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15184
15264
|
})
|
|
15185
15265
|
.then((httpResponse) => {
|
|
15186
|
-
return httpResponse.json()
|
|
15266
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15267
|
+
const response = jsonResponse;
|
|
15268
|
+
response.sdkHttpResponse = {
|
|
15269
|
+
headers: httpResponse.headers,
|
|
15270
|
+
};
|
|
15271
|
+
return response;
|
|
15272
|
+
});
|
|
15187
15273
|
});
|
|
15188
15274
|
return response.then((apiResponse) => {
|
|
15189
15275
|
const resp = editImageResponseFromVertex(apiResponse);
|
|
@@ -15218,7 +15304,13 @@ class Models extends BaseModule {
|
|
|
15218
15304
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15219
15305
|
})
|
|
15220
15306
|
.then((httpResponse) => {
|
|
15221
|
-
return httpResponse.json()
|
|
15307
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15308
|
+
const response = jsonResponse;
|
|
15309
|
+
response.sdkHttpResponse = {
|
|
15310
|
+
headers: httpResponse.headers,
|
|
15311
|
+
};
|
|
15312
|
+
return response;
|
|
15313
|
+
});
|
|
15222
15314
|
});
|
|
15223
15315
|
return response.then((apiResponse) => {
|
|
15224
15316
|
const resp = upscaleImageResponseFromVertex(apiResponse);
|
|
@@ -15541,7 +15633,13 @@ class Models extends BaseModule {
|
|
|
15541
15633
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15542
15634
|
})
|
|
15543
15635
|
.then((httpResponse) => {
|
|
15544
|
-
return httpResponse.json()
|
|
15636
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15637
|
+
const response = jsonResponse;
|
|
15638
|
+
response.sdkHttpResponse = {
|
|
15639
|
+
headers: httpResponse.headers,
|
|
15640
|
+
};
|
|
15641
|
+
return response;
|
|
15642
|
+
});
|
|
15545
15643
|
});
|
|
15546
15644
|
return response.then((apiResponse) => {
|
|
15547
15645
|
const resp = countTokensResponseFromVertex(apiResponse);
|
|
@@ -15567,7 +15665,13 @@ class Models extends BaseModule {
|
|
|
15567
15665
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15568
15666
|
})
|
|
15569
15667
|
.then((httpResponse) => {
|
|
15570
|
-
return httpResponse.json()
|
|
15668
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15669
|
+
const response = jsonResponse;
|
|
15670
|
+
response.sdkHttpResponse = {
|
|
15671
|
+
headers: httpResponse.headers,
|
|
15672
|
+
};
|
|
15673
|
+
return response;
|
|
15674
|
+
});
|
|
15571
15675
|
});
|
|
15572
15676
|
return response.then((apiResponse) => {
|
|
15573
15677
|
const resp = countTokensResponseFromMldev(apiResponse);
|
|
@@ -15617,7 +15721,13 @@ class Models extends BaseModule {
|
|
|
15617
15721
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15618
15722
|
})
|
|
15619
15723
|
.then((httpResponse) => {
|
|
15620
|
-
return httpResponse.json()
|
|
15724
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15725
|
+
const response = jsonResponse;
|
|
15726
|
+
response.sdkHttpResponse = {
|
|
15727
|
+
headers: httpResponse.headers,
|
|
15728
|
+
};
|
|
15729
|
+
return response;
|
|
15730
|
+
});
|
|
15621
15731
|
});
|
|
15622
15732
|
return response.then((apiResponse) => {
|
|
15623
15733
|
const resp = computeTokensResponseFromVertex(apiResponse);
|
|
@@ -17243,6 +17353,12 @@ function tunedModelFromMldev(fromObject) {
|
|
|
17243
17353
|
}
|
|
17244
17354
|
function tuningJobFromMldev(fromObject) {
|
|
17245
17355
|
const toObject = {};
|
|
17356
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17357
|
+
'sdkHttpResponse',
|
|
17358
|
+
]);
|
|
17359
|
+
if (fromSdkHttpResponse != null) {
|
|
17360
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17361
|
+
}
|
|
17246
17362
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17247
17363
|
if (fromName != null) {
|
|
17248
17364
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17353,6 +17469,12 @@ function listTuningJobsResponseFromMldev(fromObject) {
|
|
|
17353
17469
|
}
|
|
17354
17470
|
function tuningOperationFromMldev(fromObject) {
|
|
17355
17471
|
const toObject = {};
|
|
17472
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17473
|
+
'sdkHttpResponse',
|
|
17474
|
+
]);
|
|
17475
|
+
if (fromSdkHttpResponse != null) {
|
|
17476
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17477
|
+
}
|
|
17356
17478
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17357
17479
|
if (fromName != null) {
|
|
17358
17480
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17415,6 +17537,12 @@ function tunedModelFromVertex(fromObject) {
|
|
|
17415
17537
|
}
|
|
17416
17538
|
function tuningJobFromVertex(fromObject) {
|
|
17417
17539
|
const toObject = {};
|
|
17540
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17541
|
+
'sdkHttpResponse',
|
|
17542
|
+
]);
|
|
17543
|
+
if (fromSdkHttpResponse != null) {
|
|
17544
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17545
|
+
}
|
|
17418
17546
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17419
17547
|
if (fromName != null) {
|
|
17420
17548
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17633,7 +17761,13 @@ class Tunings extends BaseModule {
|
|
|
17633
17761
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17634
17762
|
})
|
|
17635
17763
|
.then((httpResponse) => {
|
|
17636
|
-
return httpResponse.json()
|
|
17764
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17765
|
+
const response = jsonResponse;
|
|
17766
|
+
response.sdkHttpResponse = {
|
|
17767
|
+
headers: httpResponse.headers,
|
|
17768
|
+
};
|
|
17769
|
+
return response;
|
|
17770
|
+
});
|
|
17637
17771
|
});
|
|
17638
17772
|
return response.then((apiResponse) => {
|
|
17639
17773
|
const resp = tuningJobFromVertex(apiResponse);
|
|
@@ -17657,7 +17791,13 @@ class Tunings extends BaseModule {
|
|
|
17657
17791
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
17658
17792
|
})
|
|
17659
17793
|
.then((httpResponse) => {
|
|
17660
|
-
return httpResponse.json()
|
|
17794
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17795
|
+
const response = jsonResponse;
|
|
17796
|
+
response.sdkHttpResponse = {
|
|
17797
|
+
headers: httpResponse.headers,
|
|
17798
|
+
};
|
|
17799
|
+
return response;
|
|
17800
|
+
});
|
|
17661
17801
|
});
|
|
17662
17802
|
return response.then((apiResponse) => {
|
|
17663
17803
|
const resp = tuningJobFromMldev(apiResponse);
|
|
@@ -17757,7 +17897,13 @@ class Tunings extends BaseModule {
|
|
|
17757
17897
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17758
17898
|
})
|
|
17759
17899
|
.then((httpResponse) => {
|
|
17760
|
-
return httpResponse.json()
|
|
17900
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17901
|
+
const response = jsonResponse;
|
|
17902
|
+
response.sdkHttpResponse = {
|
|
17903
|
+
headers: httpResponse.headers,
|
|
17904
|
+
};
|
|
17905
|
+
return response;
|
|
17906
|
+
});
|
|
17761
17907
|
});
|
|
17762
17908
|
return response.then((apiResponse) => {
|
|
17763
17909
|
const resp = tuningJobFromVertex(apiResponse);
|
|
@@ -17793,7 +17939,13 @@ class Tunings extends BaseModule {
|
|
|
17793
17939
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17794
17940
|
})
|
|
17795
17941
|
.then((httpResponse) => {
|
|
17796
|
-
return httpResponse.json()
|
|
17942
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17943
|
+
const response = jsonResponse;
|
|
17944
|
+
response.sdkHttpResponse = {
|
|
17945
|
+
headers: httpResponse.headers,
|
|
17946
|
+
};
|
|
17947
|
+
return response;
|
|
17948
|
+
});
|
|
17797
17949
|
});
|
|
17798
17950
|
return response.then((apiResponse) => {
|
|
17799
17951
|
const resp = tuningOperationFromMldev(apiResponse);
|