Skip to content

Commit 46406ae

Browse files
author
awstools
committed
feat(client-bedrock): Adding converse support to CMI API's
1 parent a4c0494 commit 46406ae

File tree

5 files changed

+52
-3
lines changed

5 files changed

+52
-3
lines changed

clients/client-bedrock/src/commands/GetImportedModelCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface GetImportedModelCommandOutput extends GetImportedModelResponse,
5353
* // creationTime: new Date("TIMESTAMP"),
5454
* // modelArchitecture: "STRING_VALUE",
5555
* // modelKmsKeyArn: "STRING_VALUE",
56+
* // instructSupported: true || false,
5657
* // };
5758
*
5859
* ```

clients/client-bedrock/src/commands/ListImportedModelsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export interface ListImportedModelsCommandOutput extends ListImportedModelsRespo
5555
* // modelArn: "STRING_VALUE", // required
5656
* // modelName: "STRING_VALUE", // required
5757
* // creationTime: new Date("TIMESTAMP"), // required
58+
* // instructSupported: true || false,
59+
* // modelArchitecture: "STRING_VALUE",
5860
* // },
5961
* // ],
6062
* // };

clients/client-bedrock/src/models/models_0.ts

+19-1
Original file line numberDiff line numberDiff line change
@@ -3322,6 +3322,12 @@ export interface GetImportedModelResponse {
33223322
* @public
33233323
*/
33243324
modelKmsKeyArn?: string;
3325+
3326+
/**
3327+
* <p>Specifies if the imported model supports fine tuning.</p>
3328+
* @public
3329+
*/
3330+
instructSupported?: boolean;
33253331
}
33263332

33273333
/**
@@ -3495,7 +3501,7 @@ export interface ListImportedModelsRequest {
34953501
}
34963502

34973503
/**
3498-
* <p>Information about tne imported model.</p>
3504+
* <p>Information about the imported model.</p>
34993505
* @public
35003506
*/
35013507
export interface ImportedModelSummary {
@@ -3516,6 +3522,18 @@ export interface ImportedModelSummary {
35163522
* @public
35173523
*/
35183524
creationTime: Date | undefined;
3525+
3526+
/**
3527+
* <p>Specifies if the imported model supports fine tuning.</p>
3528+
* @public
3529+
*/
3530+
instructSupported?: boolean;
3531+
3532+
/**
3533+
* <p>The architecture of the imported model.</p>
3534+
* @public
3535+
*/
3536+
modelArchitecture?: string;
35193537
}
35203538

35213539
/**

clients/client-bedrock/src/protocols/Aws_restJson1.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
_json,
1212
collectBody,
1313
decorateServiceException as __decorateServiceException,
14+
expectBoolean as __expectBoolean,
1415
expectInt32 as __expectInt32,
1516
expectNonNull as __expectNonNull,
1617
expectObject as __expectObject,
@@ -1634,6 +1635,7 @@ export const de_GetImportedModelCommand = async (
16341635
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
16351636
const doc = take(data, {
16361637
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1638+
instructSupported: __expectBoolean,
16371639
jobArn: __expectString,
16381640
jobName: __expectString,
16391641
modelArchitecture: __expectString,
@@ -2842,6 +2844,8 @@ const de_GuardrailSummary = (output: any, context: __SerdeContext): GuardrailSum
28422844
const de_ImportedModelSummary = (output: any, context: __SerdeContext): ImportedModelSummary => {
28432845
return take(output, {
28442846
creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2847+
instructSupported: __expectBoolean,
2848+
modelArchitecture: __expectString,
28452849
modelArn: __expectString,
28462850
modelName: __expectString,
28472851
}) as any;

codegen/sdk-codegen/aws-models/bedrock.json

+26-2
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@
27202720
"min": 1,
27212721
"max": 2048
27222722
},
2723-
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))$"
2723+
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))$"
27242724
}
27252725
},
27262726
"com.amazonaws.bedrock#EvaluationModelIdentifiers": {
@@ -3757,6 +3757,12 @@
37573757
"traits": {
37583758
"smithy.api#documentation": "<p>The imported model is encrypted at rest using this key.</p>"
37593759
}
3760+
},
3761+
"instructSupported": {
3762+
"target": "com.amazonaws.bedrock#InstructSupported",
3763+
"traits": {
3764+
"smithy.api#documentation": "<p>Specifies if the imported model supports fine tuning.</p>"
3765+
}
37603766
}
37613767
},
37623768
"traits": {
@@ -6189,10 +6195,22 @@
61896195
"smithy.api#documentation": "<p>Creation time of the imported model.</p>",
61906196
"smithy.api#required": {}
61916197
}
6198+
},
6199+
"instructSupported": {
6200+
"target": "com.amazonaws.bedrock#InstructSupported",
6201+
"traits": {
6202+
"smithy.api#documentation": "<p>Specifies if the imported model supports fine tuning.</p>"
6203+
}
6204+
},
6205+
"modelArchitecture": {
6206+
"target": "com.amazonaws.bedrock#ModelArchitecture",
6207+
"traits": {
6208+
"smithy.api#documentation": "<p>The architecture of the imported model.</p>"
6209+
}
61926210
}
61936211
},
61946212
"traits": {
6195-
"smithy.api#documentation": "<p>Information about tne imported model.</p>"
6213+
"smithy.api#documentation": "<p>Information about the imported model.</p>"
61966214
}
61976215
},
61986216
"com.amazonaws.bedrock#ImportedModelSummaryList": {
@@ -6410,6 +6428,9 @@
64106428
"target": "com.amazonaws.bedrock#InferenceType"
64116429
}
64126430
},
6431+
"com.amazonaws.bedrock#InstructSupported": {
6432+
"type": "boolean"
6433+
},
64136434
"com.amazonaws.bedrock#InternalServerException": {
64146435
"type": "structure",
64156436
"members": {
@@ -7866,6 +7887,9 @@
78667887
"com.amazonaws.bedrock#MetricFloat": {
78677888
"type": "float"
78687889
},
7890+
"com.amazonaws.bedrock#ModelArchitecture": {
7891+
"type": "string"
7892+
},
78697893
"com.amazonaws.bedrock#ModelArn": {
78707894
"type": "string",
78717895
"traits": {

0 commit comments

Comments
 (0)