@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/index.mjs
CHANGED
|
@@ -1718,8 +1718,8 @@ class GenerateVideosOperation {
|
|
|
1718
1718
|
},
|
|
1719
1719
|
};
|
|
1720
1720
|
});
|
|
1721
|
-
operationResponse.raiMediaFilteredCount =
|
|
1722
|
-
operationResponse.raiMediaFilteredReasons =
|
|
1721
|
+
operationResponse.raiMediaFilteredCount = generatedVideoResponse === null || generatedVideoResponse === void 0 ? void 0 : generatedVideoResponse['raiMediaFilteredCount'];
|
|
1722
|
+
operationResponse.raiMediaFilteredReasons = generatedVideoResponse === null || generatedVideoResponse === void 0 ? void 0 : generatedVideoResponse['raiMediaFilteredReasons'];
|
|
1723
1723
|
operation.response = operationResponse;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
@@ -6390,7 +6390,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
6390
6390
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
6391
6391
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
6392
6392
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
6393
|
-
const SDK_VERSION = '1.
|
|
6393
|
+
const SDK_VERSION = '1.12.0'; // x-release-please-version
|
|
6394
6394
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
6395
6395
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
6396
6396
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -12622,6 +12622,12 @@ function embedContentMetadataFromMldev() {
|
|
|
12622
12622
|
}
|
|
12623
12623
|
function embedContentResponseFromMldev(fromObject) {
|
|
12624
12624
|
const toObject = {};
|
|
12625
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12626
|
+
'sdkHttpResponse',
|
|
12627
|
+
]);
|
|
12628
|
+
if (fromSdkHttpResponse != null) {
|
|
12629
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12630
|
+
}
|
|
12625
12631
|
const fromEmbeddings = getValueByPath(fromObject, ['embeddings']);
|
|
12626
12632
|
if (fromEmbeddings != null) {
|
|
12627
12633
|
let transformedList = fromEmbeddings;
|
|
@@ -12694,6 +12700,12 @@ function generatedImageFromMldev(fromObject) {
|
|
|
12694
12700
|
}
|
|
12695
12701
|
function generateImagesResponseFromMldev(fromObject) {
|
|
12696
12702
|
const toObject = {};
|
|
12703
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12704
|
+
'sdkHttpResponse',
|
|
12705
|
+
]);
|
|
12706
|
+
if (fromSdkHttpResponse != null) {
|
|
12707
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12708
|
+
}
|
|
12697
12709
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
12698
12710
|
'predictions',
|
|
12699
12711
|
]);
|
|
@@ -12804,6 +12816,12 @@ function deleteModelResponseFromMldev() {
|
|
|
12804
12816
|
}
|
|
12805
12817
|
function countTokensResponseFromMldev(fromObject) {
|
|
12806
12818
|
const toObject = {};
|
|
12819
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12820
|
+
'sdkHttpResponse',
|
|
12821
|
+
]);
|
|
12822
|
+
if (fromSdkHttpResponse != null) {
|
|
12823
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
12824
|
+
}
|
|
12807
12825
|
const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);
|
|
12808
12826
|
if (fromTotalTokens != null) {
|
|
12809
12827
|
setValueByPath(toObject, ['totalTokens'], fromTotalTokens);
|
|
@@ -13190,6 +13208,12 @@ function embedContentMetadataFromVertex(fromObject) {
|
|
|
13190
13208
|
}
|
|
13191
13209
|
function embedContentResponseFromVertex(fromObject) {
|
|
13192
13210
|
const toObject = {};
|
|
13211
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13212
|
+
'sdkHttpResponse',
|
|
13213
|
+
]);
|
|
13214
|
+
if (fromSdkHttpResponse != null) {
|
|
13215
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
13216
|
+
}
|
|
13193
13217
|
const fromEmbeddings = getValueByPath(fromObject, [
|
|
13194
13218
|
'predictions[]',
|
|
13195
13219
|
'embeddings',
|
|
@@ -13273,6 +13297,12 @@ function generatedImageFromVertex(fromObject) {
|
|
|
13273
13297
|
}
|
|
13274
13298
|
function generateImagesResponseFromVertex(fromObject) {
|
|
13275
13299
|
const toObject = {};
|
|
13300
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13301
|
+
'sdkHttpResponse',
|
|
13302
|
+
]);
|
|
13303
|
+
if (fromSdkHttpResponse != null) {
|
|
13304
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
13305
|
+
}
|
|
13276
13306
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
13277
13307
|
'predictions',
|
|
13278
13308
|
]);
|
|
@@ -13295,6 +13325,12 @@ function generateImagesResponseFromVertex(fromObject) {
|
|
|
13295
13325
|
}
|
|
13296
13326
|
function editImageResponseFromVertex(fromObject) {
|
|
13297
13327
|
const toObject = {};
|
|
13328
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13329
|
+
'sdkHttpResponse',
|
|
13330
|
+
]);
|
|
13331
|
+
if (fromSdkHttpResponse != null) {
|
|
13332
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
13333
|
+
}
|
|
13298
13334
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
13299
13335
|
'predictions',
|
|
13300
13336
|
]);
|
|
@@ -13311,6 +13347,12 @@ function editImageResponseFromVertex(fromObject) {
|
|
|
13311
13347
|
}
|
|
13312
13348
|
function upscaleImageResponseFromVertex(fromObject) {
|
|
13313
13349
|
const toObject = {};
|
|
13350
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13351
|
+
'sdkHttpResponse',
|
|
13352
|
+
]);
|
|
13353
|
+
if (fromSdkHttpResponse != null) {
|
|
13354
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
13355
|
+
}
|
|
13314
13356
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
13315
13357
|
'predictions',
|
|
13316
13358
|
]);
|
|
@@ -13460,6 +13502,12 @@ function deleteModelResponseFromVertex() {
|
|
|
13460
13502
|
}
|
|
13461
13503
|
function countTokensResponseFromVertex(fromObject) {
|
|
13462
13504
|
const toObject = {};
|
|
13505
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13506
|
+
'sdkHttpResponse',
|
|
13507
|
+
]);
|
|
13508
|
+
if (fromSdkHttpResponse != null) {
|
|
13509
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
13510
|
+
}
|
|
13463
13511
|
const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);
|
|
13464
13512
|
if (fromTotalTokens != null) {
|
|
13465
13513
|
setValueByPath(toObject, ['totalTokens'], fromTotalTokens);
|
|
@@ -13468,6 +13516,12 @@ function countTokensResponseFromVertex(fromObject) {
|
|
|
13468
13516
|
}
|
|
13469
13517
|
function computeTokensResponseFromVertex(fromObject) {
|
|
13470
13518
|
const toObject = {};
|
|
13519
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13520
|
+
'sdkHttpResponse',
|
|
13521
|
+
]);
|
|
13522
|
+
if (fromSdkHttpResponse != null) {
|
|
13523
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
13524
|
+
}
|
|
13471
13525
|
const fromTokensInfo = getValueByPath(fromObject, ['tokensInfo']);
|
|
13472
13526
|
if (fromTokensInfo != null) {
|
|
13473
13527
|
setValueByPath(toObject, ['tokensInfo'], fromTokensInfo);
|
|
@@ -14072,13 +14126,13 @@ class Live {
|
|
|
14072
14126
|
const websocketBaseUrl = this.apiClient.getWebsocketBaseUrl();
|
|
14073
14127
|
const apiVersion = this.apiClient.getApiVersion();
|
|
14074
14128
|
let url;
|
|
14075
|
-
const
|
|
14129
|
+
const clientHeaders = this.apiClient.getHeaders();
|
|
14076
14130
|
if (params.config &&
|
|
14077
14131
|
params.config.tools &&
|
|
14078
14132
|
hasMcpToolUsage(params.config.tools)) {
|
|
14079
|
-
setMcpUsageHeader(
|
|
14133
|
+
setMcpUsageHeader(clientHeaders);
|
|
14080
14134
|
}
|
|
14081
|
-
const headers = mapToHeaders(
|
|
14135
|
+
const headers = mapToHeaders(clientHeaders);
|
|
14082
14136
|
if (this.apiClient.isVertexAI()) {
|
|
14083
14137
|
url = `${websocketBaseUrl}/ws/google.cloud.aiplatform.${apiVersion}.LlmBidiService/BidiGenerateContent`;
|
|
14084
14138
|
await this.auth.addAuthHeaders(headers);
|
|
@@ -14645,11 +14699,13 @@ class Models extends BaseModule {
|
|
|
14645
14699
|
response = {
|
|
14646
14700
|
generatedImages: generatedImages,
|
|
14647
14701
|
positivePromptSafetyAttributes: positivePromptSafetyAttributes,
|
|
14702
|
+
sdkHttpResponse: apiResponse.sdkHttpResponse,
|
|
14648
14703
|
};
|
|
14649
14704
|
}
|
|
14650
14705
|
else {
|
|
14651
14706
|
response = {
|
|
14652
14707
|
generatedImages: generatedImages,
|
|
14708
|
+
sdkHttpResponse: apiResponse.sdkHttpResponse,
|
|
14653
14709
|
};
|
|
14654
14710
|
}
|
|
14655
14711
|
return response;
|
|
@@ -15135,7 +15191,13 @@ class Models extends BaseModule {
|
|
|
15135
15191
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15136
15192
|
})
|
|
15137
15193
|
.then((httpResponse) => {
|
|
15138
|
-
return httpResponse.json()
|
|
15194
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15195
|
+
const response = jsonResponse;
|
|
15196
|
+
response.sdkHttpResponse = {
|
|
15197
|
+
headers: httpResponse.headers,
|
|
15198
|
+
};
|
|
15199
|
+
return response;
|
|
15200
|
+
});
|
|
15139
15201
|
});
|
|
15140
15202
|
return response.then((apiResponse) => {
|
|
15141
15203
|
const resp = embedContentResponseFromVertex(apiResponse);
|
|
@@ -15161,7 +15223,13 @@ class Models extends BaseModule {
|
|
|
15161
15223
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15162
15224
|
})
|
|
15163
15225
|
.then((httpResponse) => {
|
|
15164
|
-
return httpResponse.json()
|
|
15226
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15227
|
+
const response = jsonResponse;
|
|
15228
|
+
response.sdkHttpResponse = {
|
|
15229
|
+
headers: httpResponse.headers,
|
|
15230
|
+
};
|
|
15231
|
+
return response;
|
|
15232
|
+
});
|
|
15165
15233
|
});
|
|
15166
15234
|
return response.then((apiResponse) => {
|
|
15167
15235
|
const resp = embedContentResponseFromMldev(apiResponse);
|
|
@@ -15212,7 +15280,13 @@ class Models extends BaseModule {
|
|
|
15212
15280
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15213
15281
|
})
|
|
15214
15282
|
.then((httpResponse) => {
|
|
15215
|
-
return httpResponse.json()
|
|
15283
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15284
|
+
const response = jsonResponse;
|
|
15285
|
+
response.sdkHttpResponse = {
|
|
15286
|
+
headers: httpResponse.headers,
|
|
15287
|
+
};
|
|
15288
|
+
return response;
|
|
15289
|
+
});
|
|
15216
15290
|
});
|
|
15217
15291
|
return response.then((apiResponse) => {
|
|
15218
15292
|
const resp = generateImagesResponseFromVertex(apiResponse);
|
|
@@ -15238,7 +15312,13 @@ class Models extends BaseModule {
|
|
|
15238
15312
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15239
15313
|
})
|
|
15240
15314
|
.then((httpResponse) => {
|
|
15241
|
-
return httpResponse.json()
|
|
15315
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15316
|
+
const response = jsonResponse;
|
|
15317
|
+
response.sdkHttpResponse = {
|
|
15318
|
+
headers: httpResponse.headers,
|
|
15319
|
+
};
|
|
15320
|
+
return response;
|
|
15321
|
+
});
|
|
15242
15322
|
});
|
|
15243
15323
|
return response.then((apiResponse) => {
|
|
15244
15324
|
const resp = generateImagesResponseFromMldev(apiResponse);
|
|
@@ -15270,7 +15350,13 @@ class Models extends BaseModule {
|
|
|
15270
15350
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15271
15351
|
})
|
|
15272
15352
|
.then((httpResponse) => {
|
|
15273
|
-
return httpResponse.json()
|
|
15353
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15354
|
+
const response = jsonResponse;
|
|
15355
|
+
response.sdkHttpResponse = {
|
|
15356
|
+
headers: httpResponse.headers,
|
|
15357
|
+
};
|
|
15358
|
+
return response;
|
|
15359
|
+
});
|
|
15274
15360
|
});
|
|
15275
15361
|
return response.then((apiResponse) => {
|
|
15276
15362
|
const resp = editImageResponseFromVertex(apiResponse);
|
|
@@ -15305,7 +15391,13 @@ class Models extends BaseModule {
|
|
|
15305
15391
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15306
15392
|
})
|
|
15307
15393
|
.then((httpResponse) => {
|
|
15308
|
-
return httpResponse.json()
|
|
15394
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15395
|
+
const response = jsonResponse;
|
|
15396
|
+
response.sdkHttpResponse = {
|
|
15397
|
+
headers: httpResponse.headers,
|
|
15398
|
+
};
|
|
15399
|
+
return response;
|
|
15400
|
+
});
|
|
15309
15401
|
});
|
|
15310
15402
|
return response.then((apiResponse) => {
|
|
15311
15403
|
const resp = upscaleImageResponseFromVertex(apiResponse);
|
|
@@ -15628,7 +15720,13 @@ class Models extends BaseModule {
|
|
|
15628
15720
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15629
15721
|
})
|
|
15630
15722
|
.then((httpResponse) => {
|
|
15631
|
-
return httpResponse.json()
|
|
15723
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15724
|
+
const response = jsonResponse;
|
|
15725
|
+
response.sdkHttpResponse = {
|
|
15726
|
+
headers: httpResponse.headers,
|
|
15727
|
+
};
|
|
15728
|
+
return response;
|
|
15729
|
+
});
|
|
15632
15730
|
});
|
|
15633
15731
|
return response.then((apiResponse) => {
|
|
15634
15732
|
const resp = countTokensResponseFromVertex(apiResponse);
|
|
@@ -15654,7 +15752,13 @@ class Models extends BaseModule {
|
|
|
15654
15752
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
15655
15753
|
})
|
|
15656
15754
|
.then((httpResponse) => {
|
|
15657
|
-
return httpResponse.json()
|
|
15755
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15756
|
+
const response = jsonResponse;
|
|
15757
|
+
response.sdkHttpResponse = {
|
|
15758
|
+
headers: httpResponse.headers,
|
|
15759
|
+
};
|
|
15760
|
+
return response;
|
|
15761
|
+
});
|
|
15658
15762
|
});
|
|
15659
15763
|
return response.then((apiResponse) => {
|
|
15660
15764
|
const resp = countTokensResponseFromMldev(apiResponse);
|
|
@@ -15704,7 +15808,13 @@ class Models extends BaseModule {
|
|
|
15704
15808
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
15705
15809
|
})
|
|
15706
15810
|
.then((httpResponse) => {
|
|
15707
|
-
return httpResponse.json()
|
|
15811
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
15812
|
+
const response = jsonResponse;
|
|
15813
|
+
response.sdkHttpResponse = {
|
|
15814
|
+
headers: httpResponse.headers,
|
|
15815
|
+
};
|
|
15816
|
+
return response;
|
|
15817
|
+
});
|
|
15708
15818
|
});
|
|
15709
15819
|
return response.then((apiResponse) => {
|
|
15710
15820
|
const resp = computeTokensResponseFromVertex(apiResponse);
|
|
@@ -17156,6 +17266,12 @@ function tunedModelFromMldev(fromObject) {
|
|
|
17156
17266
|
}
|
|
17157
17267
|
function tuningJobFromMldev(fromObject) {
|
|
17158
17268
|
const toObject = {};
|
|
17269
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17270
|
+
'sdkHttpResponse',
|
|
17271
|
+
]);
|
|
17272
|
+
if (fromSdkHttpResponse != null) {
|
|
17273
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17274
|
+
}
|
|
17159
17275
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17160
17276
|
if (fromName != null) {
|
|
17161
17277
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17266,6 +17382,12 @@ function listTuningJobsResponseFromMldev(fromObject) {
|
|
|
17266
17382
|
}
|
|
17267
17383
|
function tuningOperationFromMldev(fromObject) {
|
|
17268
17384
|
const toObject = {};
|
|
17385
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17386
|
+
'sdkHttpResponse',
|
|
17387
|
+
]);
|
|
17388
|
+
if (fromSdkHttpResponse != null) {
|
|
17389
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17390
|
+
}
|
|
17269
17391
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17270
17392
|
if (fromName != null) {
|
|
17271
17393
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17328,6 +17450,12 @@ function tunedModelFromVertex(fromObject) {
|
|
|
17328
17450
|
}
|
|
17329
17451
|
function tuningJobFromVertex(fromObject) {
|
|
17330
17452
|
const toObject = {};
|
|
17453
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
17454
|
+
'sdkHttpResponse',
|
|
17455
|
+
]);
|
|
17456
|
+
if (fromSdkHttpResponse != null) {
|
|
17457
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
17458
|
+
}
|
|
17331
17459
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
17332
17460
|
if (fromName != null) {
|
|
17333
17461
|
setValueByPath(toObject, ['name'], fromName);
|
|
@@ -17546,7 +17674,13 @@ class Tunings extends BaseModule {
|
|
|
17546
17674
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17547
17675
|
})
|
|
17548
17676
|
.then((httpResponse) => {
|
|
17549
|
-
return httpResponse.json()
|
|
17677
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17678
|
+
const response = jsonResponse;
|
|
17679
|
+
response.sdkHttpResponse = {
|
|
17680
|
+
headers: httpResponse.headers,
|
|
17681
|
+
};
|
|
17682
|
+
return response;
|
|
17683
|
+
});
|
|
17550
17684
|
});
|
|
17551
17685
|
return response.then((apiResponse) => {
|
|
17552
17686
|
const resp = tuningJobFromVertex(apiResponse);
|
|
@@ -17570,7 +17704,13 @@ class Tunings extends BaseModule {
|
|
|
17570
17704
|
abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
|
|
17571
17705
|
})
|
|
17572
17706
|
.then((httpResponse) => {
|
|
17573
|
-
return httpResponse.json()
|
|
17707
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17708
|
+
const response = jsonResponse;
|
|
17709
|
+
response.sdkHttpResponse = {
|
|
17710
|
+
headers: httpResponse.headers,
|
|
17711
|
+
};
|
|
17712
|
+
return response;
|
|
17713
|
+
});
|
|
17574
17714
|
});
|
|
17575
17715
|
return response.then((apiResponse) => {
|
|
17576
17716
|
const resp = tuningJobFromMldev(apiResponse);
|
|
@@ -17670,7 +17810,13 @@ class Tunings extends BaseModule {
|
|
|
17670
17810
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17671
17811
|
})
|
|
17672
17812
|
.then((httpResponse) => {
|
|
17673
|
-
return httpResponse.json()
|
|
17813
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17814
|
+
const response = jsonResponse;
|
|
17815
|
+
response.sdkHttpResponse = {
|
|
17816
|
+
headers: httpResponse.headers,
|
|
17817
|
+
};
|
|
17818
|
+
return response;
|
|
17819
|
+
});
|
|
17674
17820
|
});
|
|
17675
17821
|
return response.then((apiResponse) => {
|
|
17676
17822
|
const resp = tuningJobFromVertex(apiResponse);
|
|
@@ -17706,7 +17852,13 @@ class Tunings extends BaseModule {
|
|
|
17706
17852
|
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
17707
17853
|
})
|
|
17708
17854
|
.then((httpResponse) => {
|
|
17709
|
-
return httpResponse.json()
|
|
17855
|
+
return httpResponse.json().then((jsonResponse) => {
|
|
17856
|
+
const response = jsonResponse;
|
|
17857
|
+
response.sdkHttpResponse = {
|
|
17858
|
+
headers: httpResponse.headers,
|
|
17859
|
+
};
|
|
17860
|
+
return response;
|
|
17861
|
+
});
|
|
17710
17862
|
});
|
|
17711
17863
|
return response.then((apiResponse) => {
|
|
17712
17864
|
const resp = tuningOperationFromMldev(apiResponse);
|