@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.cjs
CHANGED
|
@@ -1776,8 +1776,8 @@ class GenerateVideosOperation {
|
|
|
1776
1776
|
},
|
|
1777
1777
|
};
|
|
1778
1778
|
});
|
|
1779
|
-
operationResponse.raiMediaFilteredCount =
|
|
1780
|
-
operationResponse.raiMediaFilteredReasons =
|
|
1779
|
+
operationResponse.raiMediaFilteredCount = generatedVideoResponse === null || generatedVideoResponse === void 0 ? void 0 : generatedVideoResponse['raiMediaFilteredCount'];
|
|
1780
|
+
operationResponse.raiMediaFilteredReasons = generatedVideoResponse === null || generatedVideoResponse === void 0 ? void 0 : generatedVideoResponse['raiMediaFilteredReasons'];
|
|
1781
1781
|
operation.response = operationResponse;
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
@@ -11983,6 +11983,12 @@ function embedContentMetadataFromMldev() {
|
|
|
11983
11983
|
}
|
|
11984
11984
|
function embedContentResponseFromMldev(fromObject) {
|
|
11985
11985
|
const toObject = {};
|
|
11986
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11987
|
+
'sdkHttpResponse',
|
|
11988
|
+
]);
|
|
11989
|
+
if (fromSdkHttpResponse != null) {
|
|
11990
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
11991
|
+
}
|
|
11986
11992
|
const fromEmbeddings = getValueByPath(fromObject, ['embeddings']);
|
|
11987
11993
|
if (fromEmbeddings != null) {
|
|
11988
11994
|
let transformedList = fromEmbeddings;
|
|
@@ -12055,6 +12061,12 @@ function generatedImageFromMldev(fromObject) {
|
|
|
12055
12061
|
}
|
|
12056
12062
|
function generateImagesResponseFromMldev(fromObject) {
|
|
12057
12063
|
const toObject = {};
|
|
12064
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12065
|
+
'sdkHttpResponse',
|
|
12066
|
+
]);
|
|
12067
|
+
if (fromSdkHttpResponse != null) {
|
|
12068
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12069
|
+
}
|
|
12058
12070
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12059
12071
|
'predictions',
|
|
12060
12072
|
]);
|
|
@@ -12165,6 +12177,12 @@ function deleteModelResponseFromMldev() {
|
|
|
12165
12177
|
}
|
|
12166
12178
|
function countTokensResponseFromMldev(fromObject) {
|
|
12167
12179
|
const toObject = {};
|
|
12180
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12181
|
+
'sdkHttpResponse',
|
|
12182
|
+
]);
|
|
12183
|
+
if (fromSdkHttpResponse != null) {
|
|
12184
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12185
|
+
}
|
|
12168
12186
|
const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);
|
|
12169
12187
|
if (fromTotalTokens != null) {
|
|
12170
12188
|
setValueByPath(toObject, ['totalTokens'], fromTotalTokens);
|
|
@@ -12551,6 +12569,12 @@ function embedContentMetadataFromVertex(fromObject) {
|
|
|
12551
12569
|
}
|
|
12552
12570
|
function embedContentResponseFromVertex(fromObject) {
|
|
12553
12571
|
const toObject = {};
|
|
12572
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12573
|
+
'sdkHttpResponse',
|
|
12574
|
+
]);
|
|
12575
|
+
if (fromSdkHttpResponse != null) {
|
|
12576
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12577
|
+
}
|
|
12554
12578
|
const fromEmbeddings = getValueByPath(fromObject, [
|
|
12555
12579
|
'predictions[]',
|
|
12556
12580
|
'embeddings',
|
|
@@ -12634,6 +12658,12 @@ function generatedImageFromVertex(fromObject) {
|
|
|
12634
12658
|
}
|
|
12635
12659
|
function generateImagesResponseFromVertex(fromObject) {
|
|
12636
12660
|
const toObject = {};
|
|
12661
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12662
|
+
'sdkHttpResponse',
|
|
12663
|
+
]);
|
|
12664
|
+
if (fromSdkHttpResponse != null) {
|
|
12665
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12666
|
+
}
|
|
12637
12667
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12638
12668
|
'predictions',
|
|
12639
12669
|
]);
|
|
@@ -12656,6 +12686,12 @@ function generateImagesResponseFromVertex(fromObject) {
|
|
|
12656
12686
|
}
|
|
12657
12687
|
function editImageResponseFromVertex(fromObject) {
|
|
12658
12688
|
const toObject = {};
|
|
12689
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12690
|
+
'sdkHttpResponse',
|
|
12691
|
+
]);
|
|
12692
|
+
if (fromSdkHttpResponse != null) {
|
|
12693
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12694
|
+
}
|
|
12659
12695
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12660
12696
|
'predictions',
|
|
12661
12697
|
]);
|
|
@@ -12672,6 +12708,12 @@ function editImageResponseFromVertex(fromObject) {
|
|
|
12672
12708
|
}
|
|
12673
12709
|
function upscaleImageResponseFromVertex(fromObject) {
|
|
12674
12710
|
const toObject = {};
|
|
12711
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12712
|
+
'sdkHttpResponse',
|
|
12713
|
+
]);
|
|
12714
|
+
if (fromSdkHttpResponse != null) {
|
|
12715
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12716
|
+
}
|
|
12675
12717
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12676
12718
|
'predictions',
|
|
12677
12719
|
]);
|
|
@@ -12821,6 +12863,12 @@ function deleteModelResponseFromVertex() {
|
|
|
12821
12863
|
}
|
|
12822
12864
|
function countTokensResponseFromVertex(fromObject) {
|
|
12823
12865
|
const toObject = {};
|
|
12866
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12867
|
+
'sdkHttpResponse',
|
|
12868
|
+
]);
|
|
12869
|
+
if (fromSdkHttpResponse != null) {
|
|
12870
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12871
|
+
}
|
|
12824
12872
|
const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);
|
|
12825
12873
|
if (fromTotalTokens != null) {
|
|
12826
12874
|
setValueByPath(toObject, ['totalTokens'], fromTotalTokens);
|
|
@@ -12829,6 +12877,12 @@ function countTokensResponseFromVertex(fromObject) {
|
|
|
12829
12877
|
}
|
|
12830
12878
|
function computeTokensResponseFromVertex(fromObject) {
|
|
12831
12879
|
const toObject = {};
|
|
12880
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12881
|
+
'sdkHttpResponse',
|
|
12882
|
+
]);
|
|
12883
|
+
if (fromSdkHttpResponse != null) {
|
|
12884
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12885
|
+
}
|
|
12832
12886
|
const fromTokensInfo = getValueByPath(fromObject, ['tokensInfo']);
|
|
12833
12887
|
if (fromTokensInfo != null) {
|
|
12834
12888
|
setValueByPath(toObject, ['tokensInfo'], fromTokensInfo);
|
|
@@ -12921,7 +12975,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
12921
12975
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
12922
12976
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
12923
12977
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
12924
|
-
const SDK_VERSION = '1.
|
|
12978
|
+
const SDK_VERSION = '1.12.0'; // x-release-please-version
|
|
12925
12979
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
12926
12980
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
12927
12981
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -14007,13 +14061,13 @@ class Live {
|
|
|
14007
14061
|
const websocketBaseUrl = this.apiClient.getWebsocketBaseUrl();
|
|
14008
14062
|
const apiVersion = this.apiClient.getApiVersion();
|
|
14009
14063
|
let url;
|
|
14010
|
-
const
|
|
14064
|
+
const clientHeaders = this.apiClient.getHeaders();
|
|
14011
14065
|
if (params.config &&
|
|
14012
14066
|
params.config.tools &&
|
|
14013
14067
|
hasMcpToolUsage(params.config.tools)) {
|
|
14014
|
-
setMcpUsageHeader(
|
|
14068
|
+
setMcpUsageHeader(clientHeaders);
|
|
14015
14069
|
}
|
|
14016
|
-
const headers = mapToHeaders(
|
|
14070
|
+
const headers = mapToHeaders(clientHeaders);
|
|
14017
14071
|
if (this.apiClient.isVertexAI()) {
|
|
14018
14072
|
url = `${websocketBaseUrl}/ws/google.cloud.aiplatform.${apiVersion}.LlmBidiService/BidiGenerateContent`;
|
|
14019
14073
|
await this.auth.addAuthHeaders(headers);
|
|
@@ -14580,11 +14634,13 @@ class Models extends BaseModule {
|
|
|
14580
14634
|
response = {
|
|
14581
14635
|
generatedImages: generatedImages,
|
|
14582
14636
|
positivePromptSafetyAttributes: positivePromptSafetyAttributes,
|
|
14637
|
+
sdkHttpResponse: apiResponse.sdkHttpResponse,
|
|
14583
14638
|
};
|
|
14584
14639
|
}
|
|
14585
14640
|
else {
|
|
14586
14641
|
response = {
|
|
14587
14642
|
generatedImages: generatedImages,
|
|
14643
|
+
sdkHttpResponse: apiResponse.sdkHttpResponse,
|
|
14588
14644
|
};
|
|
14589
14645
|
}
|
|
14590
14646
|
return response;
|
|
@@ -15070,7 +15126,13 @@ class Models extends BaseModule {
|
|
|
15070
15126
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15071
15127
|
})
|
|
15072
15128
|
.then((httpResponse) => {
|
|
15073
|
-
return httpResponse.json()
|
|
15129
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15130
|
+
const response = jsonResponse;
|
|
15131
|
+
response.sdkHttpResponse = {
|
|
15132
|
+
headers: httpResponse.headers,
|
|
15133
|
+
};
|
|
15134
|
+
return response;
|
|
15135
|
+
});
|
|
15074
15136
|
});
|
|
15075
15137
|
return response.then((apiResponse) => {
|
|
15076
15138
|
const resp = embedContentResponseFromVertex(apiResponse);
|
|
@@ -15096,7 +15158,13 @@ class Models extends BaseModule {
|
|
|
15096
15158
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15097
15159
|
})
|
|
15098
15160
|
.then((httpResponse) => {
|
|
15099
|
-
return httpResponse.json()
|
|
15161
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15162
|
+
const response = jsonResponse;
|
|
15163
|
+
response.sdkHttpResponse = {
|
|
15164
|
+
headers: httpResponse.headers,
|
|
15165
|
+
};
|
|
15166
|
+
return response;
|
|
15167
|
+
});
|
|
15100
15168
|
});
|
|
15101
15169
|
return response.then((apiResponse) => {
|
|
15102
15170
|
const resp = embedContentResponseFromMldev(apiResponse);
|
|
@@ -15147,7 +15215,13 @@ class Models extends BaseModule {
|
|
|
15147
15215
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15148
15216
|
})
|
|
15149
15217
|
.then((httpResponse) => {
|
|
15150
|
-
return httpResponse.json()
|
|
15218
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15219
|
+
const response = jsonResponse;
|
|
15220
|
+
response.sdkHttpResponse = {
|
|
15221
|
+
headers: httpResponse.headers,
|
|
15222
|
+
};
|
|
15223
|
+
return response;
|
|
15224
|
+
});
|
|
15151
15225
|
});
|
|
15152
15226
|
return response.then((apiResponse) => {
|
|
15153
15227
|
const resp = generateImagesResponseFromVertex(apiResponse);
|
|
@@ -15173,7 +15247,13 @@ class Models extends BaseModule {
|
|
|
15173
15247
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15174
15248
|
})
|
|
15175
15249
|
.then((httpResponse) => {
|
|
15176
|
-
return httpResponse.json()
|
|
15250
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15251
|
+
const response = jsonResponse;
|
|
15252
|
+
response.sdkHttpResponse = {
|
|
15253
|
+
headers: httpResponse.headers,
|
|
15254
|
+
};
|
|
15255
|
+
return response;
|
|
15256
|
+
});
|
|
15177
15257
|
});
|
|
15178
15258
|
return response.then((apiResponse) => {
|
|
15179
15259
|
const resp = generateImagesResponseFromMldev(apiResponse);
|
|
@@ -15205,7 +15285,13 @@ class Models extends BaseModule {
|
|
|
15205
15285
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15206
15286
|
})
|
|
15207
15287
|
.then((httpResponse) => {
|
|
15208
|
-
return httpResponse.json()
|
|
15288
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15289
|
+
const response = jsonResponse;
|
|
15290
|
+
response.sdkHttpResponse = {
|
|
15291
|
+
headers: httpResponse.headers,
|
|
15292
|
+
};
|
|
15293
|
+
return response;
|
|
15294
|
+
});
|
|
15209
15295
|
});
|
|
15210
15296
|
return response.then((apiResponse) => {
|
|
15211
15297
|
const resp = editImageResponseFromVertex(apiResponse);
|
|
@@ -15240,7 +15326,13 @@ class Models extends BaseModule {
|
|
|
15240
15326
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15241
15327
|
})
|
|
15242
15328
|
.then((httpResponse) => {
|
|
15243
|
-
return httpResponse.json()
|
|
15329
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15330
|
+
const response = jsonResponse;
|
|
15331
|
+
response.sdkHttpResponse = {
|
|
15332
|
+
headers: httpResponse.headers,
|
|
15333
|
+
};
|
|
15334
|
+
return response;
|
|
15335
|
+
});
|
|
15244
15336
|
});
|
|
15245
15337
|
return response.then((apiResponse) => {
|
|
15246
15338
|
const resp = upscaleImageResponseFromVertex(apiResponse);
|
|
@@ -15563,7 +15655,13 @@ class Models extends BaseModule {
|
|
|
15563
15655
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15564
15656
|
})
|
|
15565
15657
|
.then((httpResponse) => {
|
|
15566
|
-
return httpResponse.json()
|
|
15658
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15659
|
+
const response = jsonResponse;
|
|
15660
|
+
response.sdkHttpResponse = {
|
|
15661
|
+
headers: httpResponse.headers,
|
|
15662
|
+
};
|
|
15663
|
+
return response;
|
|
15664
|
+
});
|
|
15567
15665
|
});
|
|
15568
15666
|
return response.then((apiResponse) => {
|
|
15569
15667
|
const resp = countTokensResponseFromVertex(apiResponse);
|
|
@@ -15589,7 +15687,13 @@ class Models extends BaseModule {
|
|
|
15589
15687
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15590
15688
|
})
|
|
15591
15689
|
.then((httpResponse) => {
|
|
15592
|
-
return httpResponse.json()
|
|
15690
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15691
|
+
const response = jsonResponse;
|
|
15692
|
+
response.sdkHttpResponse = {
|
|
15693
|
+
headers: httpResponse.headers,
|
|
15694
|
+
};
|
|
15695
|
+
return response;
|
|
15696
|
+
});
|
|
15593
15697
|
});
|
|
15594
15698
|
return response.then((apiResponse) => {
|
|
15595
15699
|
const resp = countTokensResponseFromMldev(apiResponse);
|
|
@@ -15639,7 +15743,13 @@ class Models extends BaseModule {
|
|
|
15639
15743
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15640
15744
|
})
|
|
15641
15745
|
.then((httpResponse) => {
|
|
15642
|
-
return httpResponse.json()
|
|
15746
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15747
|
+
const response = jsonResponse;
|
|
15748
|
+
response.sdkHttpResponse = {
|
|
15749
|
+
headers: httpResponse.headers,
|
|
15750
|
+
};
|
|
15751
|
+
return response;
|
|
15752
|
+
});
|
|
15643
15753
|
});
|
|
15644
15754
|
return response.then((apiResponse) => {
|
|
15645
15755
|
const resp = computeTokensResponseFromVertex(apiResponse);
|
|
@@ -17265,6 +17375,12 @@ function tunedModelFromMldev(fromObject) {
|
|
|
17265
17375
|
}
|
|
17266
17376
|
function tuningJobFromMldev(fromObject) {
|
|
17267
17377
|
const toObject = {};
|
|
17378
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17379
|
+
'sdkHttpResponse',
|
|
17380
|
+
]);
|
|
17381
|
+
if (fromSdkHttpResponse != null) {
|
|
17382
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17383
|
+
}
|
|
17268
17384
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17269
17385
|
if (fromName != null) {
|
|
17270
17386
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17375,6 +17491,12 @@ function listTuningJobsResponseFromMldev(fromObject) {
|
|
|
17375
17491
|
}
|
|
17376
17492
|
function tuningOperationFromMldev(fromObject) {
|
|
17377
17493
|
const toObject = {};
|
|
17494
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17495
|
+
'sdkHttpResponse',
|
|
17496
|
+
]);
|
|
17497
|
+
if (fromSdkHttpResponse != null) {
|
|
17498
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17499
|
+
}
|
|
17378
17500
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17379
17501
|
if (fromName != null) {
|
|
17380
17502
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17437,6 +17559,12 @@ function tunedModelFromVertex(fromObject) {
|
|
|
17437
17559
|
}
|
|
17438
17560
|
function tuningJobFromVertex(fromObject) {
|
|
17439
17561
|
const toObject = {};
|
|
17562
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17563
|
+
'sdkHttpResponse',
|
|
17564
|
+
]);
|
|
17565
|
+
if (fromSdkHttpResponse != null) {
|
|
17566
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17567
|
+
}
|
|
17440
17568
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17441
17569
|
if (fromName != null) {
|
|
17442
17570
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17655,7 +17783,13 @@ class Tunings extends BaseModule {
|
|
|
17655
17783
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17656
17784
|
})
|
|
17657
17785
|
.then((httpResponse) => {
|
|
17658
|
-
return httpResponse.json()
|
|
17786
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17787
|
+
const response = jsonResponse;
|
|
17788
|
+
response.sdkHttpResponse = {
|
|
17789
|
+
headers: httpResponse.headers,
|
|
17790
|
+
};
|
|
17791
|
+
return response;
|
|
17792
|
+
});
|
|
17659
17793
|
});
|
|
17660
17794
|
return response.then((apiResponse) => {
|
|
17661
17795
|
const resp = tuningJobFromVertex(apiResponse);
|
|
@@ -17679,7 +17813,13 @@ class Tunings extends BaseModule {
|
|
|
17679
17813
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
17680
17814
|
})
|
|
17681
17815
|
.then((httpResponse) => {
|
|
17682
|
-
return httpResponse.json()
|
|
17816
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17817
|
+
const response = jsonResponse;
|
|
17818
|
+
response.sdkHttpResponse = {
|
|
17819
|
+
headers: httpResponse.headers,
|
|
17820
|
+
};
|
|
17821
|
+
return response;
|
|
17822
|
+
});
|
|
17683
17823
|
});
|
|
17684
17824
|
return response.then((apiResponse) => {
|
|
17685
17825
|
const resp = tuningJobFromMldev(apiResponse);
|
|
@@ -17779,7 +17919,13 @@ class Tunings extends BaseModule {
|
|
|
17779
17919
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17780
17920
|
})
|
|
17781
17921
|
.then((httpResponse) => {
|
|
17782
|
-
return httpResponse.json()
|
|
17922
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17923
|
+
const response = jsonResponse;
|
|
17924
|
+
response.sdkHttpResponse = {
|
|
17925
|
+
headers: httpResponse.headers,
|
|
17926
|
+
};
|
|
17927
|
+
return response;
|
|
17928
|
+
});
|
|
17783
17929
|
});
|
|
17784
17930
|
return response.then((apiResponse) => {
|
|
17785
17931
|
const resp = tuningJobFromVertex(apiResponse);
|
|
@@ -17815,7 +17961,13 @@ class Tunings extends BaseModule {
|
|
|
17815
17961
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17816
17962
|
})
|
|
17817
17963
|
.then((httpResponse) => {
|
|
17818
|
-
return httpResponse.json()
|
|
17964
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17965
|
+
const response = jsonResponse;
|
|
17966
|
+
response.sdkHttpResponse = {
|
|
17967
|
+
headers: httpResponse.headers,
|
|
17968
|
+
};
|
|
17969
|
+
return response;
|
|
17970
|
+
});
|
|
17819
17971
|
});
|
|
17820
17972
|
return response.then((apiResponse) => {
|
|
17821
17973
|
const resp = tuningOperationFromMldev(apiResponse);
|