Skip to content

Commit 1fa6865

Browse files
committed
feat: add claude-sonnet-5 model support
1 parent d302228 commit 1fa6865

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export const MODEL_MAPPING: Record<string, string> = {
8080
'claude-sonnet-4-6-thinking': 'claude-sonnet-4.6',
8181
'claude-sonnet-4-6-1m': 'claude-sonnet-4.6-1m',
8282
'claude-sonnet-4-6-1m-thinking': 'claude-sonnet-4.6-1m',
83+
'claude-sonnet-5': 'claude-sonnet-5',
84+
'claude-sonnet-5-thinking': 'claude-sonnet-5',
85+
'claude-sonnet-5-1m': 'claude-sonnet-5-1m',
86+
'claude-sonnet-5-1m-thinking': 'claude-sonnet-5-1m',
8387
// Claude Opus
8488
'claude-opus-4-5': 'claude-opus-4.5',
8589
'claude-opus-4-5-thinking': 'claude-opus-4.5',

src/plugin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ export const createKiroPlugin =
131131
limit: { context: 1000000, output: 64000 },
132132
modalities: { input: ['text', 'image', 'pdf'], output: ['text'] }
133133
},
134+
'claude-sonnet-5': {
135+
name: 'Claude Sonnet 5 (1.3x)',
136+
limit: { context: 1000000, output: 64000 },
137+
modalities: { input: ['text', 'image', 'pdf'], output: ['text'] }
138+
},
134139
// Claude Haiku
135140
'claude-haiku-4-5': {
136141
name: 'Claude Haiku 4.5 (0.4x)',

src/plugin/effort.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const EFFORT_CAPABLE_MODELS = new Set([
2323
'claude-sonnet-4.5-1m',
2424
'claude-sonnet-4.6',
2525
'claude-sonnet-4.6-1m',
26+
'claude-sonnet-5',
27+
'claude-sonnet-5-1m',
2628
...XHIGH_CAPABLE_MODELS
2729
])
2830

0 commit comments

Comments
 (0)