Skip to content

Commit 1991658

Browse files
authored
feat: update list of models and set default to 4 (#1659)
1 parent 287a2b9 commit 1991658

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

chat-client/src/client/mynahUi.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,14 @@ describe('MynahUI', () => {
427427

428428
const newValues = {
429429
'pair-programmer-mode': 'true',
430-
'model-selection': BedrockModel.CLAUDE_3_5_SONNET_20241022_V2_0,
430+
'model-selection': BedrockModel.CLAUDE_3_7_SONNET_20250219_V1_0,
431431
}
432432

433433
handlePromptInputChange(mynahUi, tabId, newValues)
434434

435435
const expectedOptions = [
436436
{ id: 'pair-programmer-mode', value: 'true' },
437-
{ id: 'model-selection', value: BedrockModel.CLAUDE_3_5_SONNET_20241022_V2_0 },
437+
{ id: 'model-selection', value: BedrockModel.CLAUDE_3_7_SONNET_20250219_V1_0 },
438438
]
439439

440440
sinon.assert.calledWith(updateStoreSpy, tabId, {

chat-client/src/client/texts/modelSelection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { ChatItem, ChatItemFormItem, ChatItemType } from '@aws/mynah-ui'
22

33
export enum BedrockModel {
4+
CLAUDE_SONNET_4_20250514_V1_0 = 'CLAUDE_SONNET_4_20250514_V1_0',
45
CLAUDE_3_7_SONNET_20250219_V1_0 = 'CLAUDE_3_7_SONNET_20250219_V1_0',
5-
CLAUDE_3_5_SONNET_20241022_V2_0 = 'CLAUDE_3_5_SONNET_20241022_V2_0',
66
}
77

88
type ModelDetails = {
99
label: string
1010
}
1111

1212
const modelRecord: Record<BedrockModel, ModelDetails> = {
13-
[BedrockModel.CLAUDE_3_5_SONNET_20241022_V2_0]: { label: 'Claude Sonnet 3.5' },
1413
[BedrockModel.CLAUDE_3_7_SONNET_20250219_V1_0]: { label: 'Claude Sonnet 3.7' },
14+
[BedrockModel.CLAUDE_SONNET_4_20250514_V1_0]: { label: 'Claude Sonnet 4' },
1515
}
1616

1717
const modelOptions = Object.entries(modelRecord).map(([value, { label }]) => ({

server/aws-lsp-codewhisperer/src/language-server/agenticChat/constants.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ export const outputLimitExceedsPartialMsg = 'output exceeds maximum character li
55
export const responseTimeoutMs = 170_000
66
export const responseTimeoutPartialMsg = 'Response processing timed out after'
77
export const clientTimeoutMs = 180_000
8-
export const defaultModelId = undefined
9-
// TODO: Uncomment this line when model selection is ready to release
10-
// export const defaultModelId = 'CLAUDE_3_7_SONNET_20250219_V1_0' // TODO: this can't be imported from chat-client, so we hardcode it here
8+
export const defaultModelId = 'CLAUDE_SONNET_4_20250514_V1_0' // TODO: this can't be imported from chat-client, so we hardcode it here

0 commit comments

Comments
 (0)