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' ;
1
2
import { AwsProps } from './aws-utils' ;
2
3
import { CohereClient } from "./Client" ;
3
4
@@ -6,4 +7,11 @@ export class AwsClient extends CohereClient {
6
7
_options . token = "n/a" ; // AWS clients don't need a token but setting to this to a string so Fern doesn't complain
7
8
super ( _options ) ;
8
9
}
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
+ }
9
17
}
Original file line number Diff line number Diff line change 1
1
import { AwsProps , fetchOverride } from './aws-utils' ;
2
- import { AwsClient } from './AwsClient' ;
2
+ import { AwsClient , AwsClientV2 } from './AwsClient' ;
3
3
import { CohereClient } from "./Client" ;
4
4
5
5
export class BedrockClient extends AwsClient {
6
6
constructor ( _options : CohereClient . Options & AwsProps ) {
7
7
super ( { ..._options , fetcher : fetchOverride ( "bedrock" , _options ) } ) ;
8
8
}
9
9
}
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' ;
2
2
import { CohereClient } from "./Client" ;
3
3
import { AwsProps , fetchOverride } from './aws-utils' ;
4
4
@@ -8,3 +8,9 @@ export class SagemakerClient extends AwsClient {
8
8
super ( { ..._options , fetcher : fetchOverride ( "sagemaker" , _options ) } ) ;
9
9
}
10
10
}
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