Skip to content

Commit 2080a0e

Browse files
authored
Updating the model of listAvailableModels (#2064)
1 parent 172a170 commit 2080a0e

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
@@ -3573,6 +3573,10 @@
35733573
"shape": "Models",
35743574
"documentation": "<p>List of available models</p>"
35753575
},
3576+
"defaultModel": {
3577+
"shape": "Model",
3578+
"documentation": "<p>Default model set by the client</p>"
3579+
},
35763580
"nextToken": {
35773581
"shape": "Base64EncodedPaginationToken",
35783582
"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';
@@ -1118,6 +1119,10 @@ declare namespace CodeWhispererBearerTokenClient {
11181119
* List of available models
11191120
*/
11201121
models: Models;
1122+
/**
1123+
* Default model set by the client
1124+
*/
1125+
defaultModel?: Model;
11211126
/**
11221127
* Token for retrieving the next page of results
11231128
*/

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

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

462+
/**
463+
* @description Get list of available models
464+
*/
465+
async listAvailableModels(request: CodeWhispererTokenClient.ListAvailableModelsRequest) {
466+
return this.client.listAvailableModels(request).promise()
467+
}
468+
462469
/**
463470
* @description send telemetry event to code whisperer data warehouse
464471
*/

0 commit comments

Comments
 (0)