Skip to content

Commit 5df7791

Browse files
authored
feat(plugins/anthropic): add Claude 4.5 Haiku model (#367)
1 parent 8b0f51a commit 5df7791

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

plugins/anthropic/src/claude.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,24 @@ export const claude45Sonnet = modelRef({
236236
version: 'claude-sonnet-4-5-20250929',
237237
});
238238

239+
export const claude45Haiku = modelRef({
240+
name: 'claude-4-5-haiku',
241+
namespace: 'anthropic',
242+
info: {
243+
versions: ['claude-haiku-4-5-20251001', 'claude-haiku-4-5-latest'],
244+
label: 'Anthropic - Claude 4.5 Haiku',
245+
supports: {
246+
multiturn: true,
247+
tools: true,
248+
media: true,
249+
systemRole: true,
250+
output: ['text'],
251+
},
252+
},
253+
configSchema: AnthropicConfigSchema,
254+
version: 'claude-haiku-4-5-latest',
255+
});
256+
239257
export const SUPPORTED_CLAUDE_MODELS: Record<
240258
string,
241259
ModelReference<typeof AnthropicConfigSchema>
@@ -249,6 +267,7 @@ export const SUPPORTED_CLAUDE_MODELS: Record<
249267
'claude-4-sonnet': claude4Sonnet,
250268
'claude-4-opus': claude4Opus,
251269
'claude-4-5-sonnet': claude45Sonnet,
270+
'claude-4-5-haiku': claude45Haiku,
252271
};
253272

254273
/**

plugins/anthropic/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
claude3Haiku,
2828
claude35Haiku,
2929
claude45Sonnet,
30+
claude45Haiku,
3031
claudeModel,
3132
SUPPORTED_CLAUDE_MODELS,
3233
} from './claude.js';
@@ -44,6 +45,7 @@ export {
4445
claude3Haiku,
4546
claude35Haiku,
4647
claude45Sonnet,
48+
claude45Haiku,
4749
};
4850

4951
export interface PluginOptions {

0 commit comments

Comments
 (0)