File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1+ import { CohereClientV2 } from 'ClientV2' ;
12import { AwsProps } from './aws-utils' ;
23import { CohereClient } from "./Client" ;
34
@@ -6,4 +7,11 @@ export class AwsClient extends CohereClient {
67 _options . token = "n/a" ; // AWS clients don't need a token but setting to this to a string so Fern doesn't complain
78 super ( _options ) ;
89 }
10+ }
11+
12+ export class AwsClientV2 extends CohereClientV2 {
13+ constructor ( _options : CohereClient . Options & AwsProps ) {
14+ _options . token = "n/a" ; // AWS clients don't need a token but setting to this to a string so Fern doesn't complain
15+ super ( _options ) ;
16+ }
917}
Original file line number Diff line number Diff line change 11import { AwsProps , fetchOverride } from './aws-utils' ;
2- import { AwsClient } from './AwsClient' ;
2+ import { AwsClient , AwsClientV2 } from './AwsClient' ;
33import { CohereClient } from "./Client" ;
44
55export class BedrockClient extends AwsClient {
66 constructor ( _options : CohereClient . Options & AwsProps ) {
77 super ( { ..._options , fetcher : fetchOverride ( "bedrock" , _options ) } ) ;
88 }
99}
10+
11+ export class BedrockClientV2 extends AwsClientV2 {
12+ constructor ( _options : CohereClient . Options & AwsProps ) {
13+ super ( { ..._options , fetcher : fetchOverride ( "bedrock" , _options ) } ) ;
14+ }
15+ }
Original file line number Diff line number Diff line change 1- import { AwsClient } from './AwsClient' ;
1+ import { AwsClient , AwsClientV2 } from './AwsClient' ;
22import { CohereClient } from "./Client" ;
33import { AwsProps , fetchOverride } from './aws-utils' ;
44
@@ -8,3 +8,9 @@ export class SagemakerClient extends AwsClient {
88 super ( { ..._options , fetcher : fetchOverride ( "sagemaker" , _options ) } ) ;
99 }
1010}
11+
12+ export class SagemakerClientV2 extends AwsClientV2 {
13+ constructor ( _options : CohereClient . Options & AwsProps ) {
14+ super ( { ..._options , fetcher : fetchOverride ( "sagemaker" , _options ) } ) ;
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments