Skip to content

Commit ab549c5

Browse files
committed
Updating the model of listAvailableModels (aws#2064)
1 parent db45d01 commit ab549c5

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

server/aws-lsp-codewhisperer/src/client/token/bearer-token-service.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,6 +3622,10 @@
36223622
"shape": "Models",
36233623
"documentation": "<p>List of available models</p>"
36243624
},
3625+
"defaultModel": {
3626+
"shape": "Model",
3627+
"documentation": "<p>Default model set by the client</p>"
3628+
},
36253629
"nextToken": {
36263630
"shape": "Base64EncodedPaginationToken",
36273631
"documentation": "<p>Token for retrieving the next page of results</p>"

server/aws-lsp-codewhisperer/src/client/token/codewhispererbearertokenclient.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* THIS FILE IS AUTOGENERATED BY 'generateServiceClient.ts'.
44
* DO NOT EDIT BY HAND.
55
*/
6+
67
import {Request} from 'aws-sdk/lib/request';
78
import {Response} from 'aws-sdk/lib/response';
89
import {AWSError} from 'aws-sdk/lib/error';
@@ -1132,6 +1133,10 @@ declare namespace CodeWhispererBearerTokenClient {
11321133
* List of available models
11331134
*/
11341135
models: Models;
1136+
/**
1137+
* Default model set by the client
1138+
*/
1139+
defaultModel?: Model;
11351140
/**
11361141
* Token for retrieving the next page of results
11371142
*/

server/aws-lsp-codewhisperer/src/shared/codeWhispererService.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,13 @@ export class CodeWhispererServiceToken extends CodeWhispererServiceBase {
615615
return this.client.listAvailableProfiles(request).promise()
616616
}
617617

618+
/**
619+
* @description Get list of available models
620+
*/
621+
async listAvailableModels(request: CodeWhispererTokenClient.ListAvailableModelsRequest) {
622+
return this.client.listAvailableModels(request).promise()
623+
}
624+
618625
/**
619626
* @description send telemetry event to code whisperer data warehouse
620627
*/

0 commit comments

Comments
 (0)