@aws-sdk/client-bedrock 3.654.0 → 3.658.1
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.
|
@@ -1800,11 +1800,6 @@ const deserializeMetadata = (output) => ({
|
|
|
1800
1800
|
cfId: output.headers["x-amz-cf-id"],
|
|
1801
1801
|
});
|
|
1802
1802
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1803
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1804
|
-
value !== null &&
|
|
1805
|
-
value !== "" &&
|
|
1806
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1807
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1808
1803
|
const _bCT = "byCustomizationType";
|
|
1809
1804
|
const _bIT = "byInferenceType";
|
|
1810
1805
|
const _bMAE = "baseModelArnEquals";
|
|
@@ -349,13 +349,13 @@ export declare namespace EvaluationConfig {
|
|
|
349
349
|
const visit: <T>(value: EvaluationConfig, visitor: Visitor<T>) => T;
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
|
-
* <p>Contains the ARN of the Amazon Bedrock
|
|
352
|
+
* <p>Contains the ARN of the Amazon Bedrock model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> specified in your model evaluation job. Each Amazon Bedrock model supports different <code>inferenceParams</code>. To learn more about supported inference parameters for Amazon Bedrock models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
353
353
|
* <p>The <code>inferenceParams</code> are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, <code>"temperature":"0.25"</code> key value pair would need to be formatted as <code>\"temperature\":\"0.25\"</code> to successfully accepted in the request.</p>
|
|
354
354
|
* @public
|
|
355
355
|
*/
|
|
356
356
|
export interface EvaluationBedrockModel {
|
|
357
357
|
/**
|
|
358
|
-
* <p>The ARN of the Amazon Bedrock model specified.</p>
|
|
358
|
+
* <p>The ARN of the Amazon Bedrock model or inference profile specified.</p>
|
|
359
359
|
* @public
|
|
360
360
|
*/
|
|
361
361
|
modelIdentifier: string | undefined;
|
|
@@ -375,7 +375,7 @@ export type EvaluationModelConfig = EvaluationModelConfig.BedrockModelMember | E
|
|
|
375
375
|
*/
|
|
376
376
|
export declare namespace EvaluationModelConfig {
|
|
377
377
|
/**
|
|
378
|
-
* <p>Defines the Amazon Bedrock model and inference parameters you want used.</p>
|
|
378
|
+
* <p>Defines the Amazon Bedrock model or inference profile and inference parameters you want used.</p>
|
|
379
379
|
* @public
|
|
380
380
|
*/
|
|
381
381
|
interface BedrockModelMember {
|
|
@@ -468,7 +468,7 @@ export interface CreateEvaluationJobRequest {
|
|
|
468
468
|
jobDescription?: string;
|
|
469
469
|
/**
|
|
470
470
|
* <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
|
|
471
|
-
*
|
|
471
|
+
* Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
|
|
472
472
|
* @public
|
|
473
473
|
*/
|
|
474
474
|
clientRequestToken?: string;
|
|
@@ -493,7 +493,7 @@ export interface CreateEvaluationJobRequest {
|
|
|
493
493
|
*/
|
|
494
494
|
evaluationConfig: EvaluationConfig | undefined;
|
|
495
495
|
/**
|
|
496
|
-
* <p>Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model
|
|
496
|
+
* <p>Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a>, and model evaluation job that use human workers support two models or inference profiles.</p>
|
|
497
497
|
* @public
|
|
498
498
|
*/
|
|
499
499
|
inferenceConfig: EvaluationInferenceConfig | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.658.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.658.1",
|
|
24
|
+
"@aws-sdk/client-sts": "3.658.1",
|
|
25
|
+
"@aws-sdk/core": "3.658.1",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.658.1",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.654.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.654.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.654.0",
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.654.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.654.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.8",
|
|
37
|
-
"@smithy/core": "^2.4.
|
|
38
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
37
|
+
"@smithy/core": "^2.4.6",
|
|
38
|
+
"@smithy/fetch-http-handler": "^3.2.8",
|
|
39
39
|
"@smithy/hash-node": "^3.0.6",
|
|
40
40
|
"@smithy/invalid-dependency": "^3.0.6",
|
|
41
41
|
"@smithy/middleware-content-length": "^3.0.8",
|
|
42
42
|
"@smithy/middleware-endpoint": "^3.1.3",
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.21",
|
|
44
44
|
"@smithy/middleware-serde": "^3.0.6",
|
|
45
45
|
"@smithy/middleware-stack": "^3.0.6",
|
|
46
46
|
"@smithy/node-config-provider": "^3.1.7",
|
|
47
|
-
"@smithy/node-http-handler": "^3.2.
|
|
47
|
+
"@smithy/node-http-handler": "^3.2.3",
|
|
48
48
|
"@smithy/protocol-http": "^4.1.3",
|
|
49
|
-
"@smithy/smithy-client": "^3.3.
|
|
49
|
+
"@smithy/smithy-client": "^3.3.5",
|
|
50
50
|
"@smithy/types": "^3.4.2",
|
|
51
51
|
"@smithy/url-parser": "^3.0.6",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.21",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.21",
|
|
57
57
|
"@smithy/util-endpoints": "^2.1.2",
|
|
58
58
|
"@smithy/util-middleware": "^3.0.6",
|
|
59
59
|
"@smithy/util-retry": "^3.0.6",
|