Skip to content

Commit 25eb297

Browse files
authored
feat(anthropic): add Claude 4.5 Opus model support (#372)
Add support for claude-opus-4-5-20251101 model and update README with all currently supported models.
1 parent f8c7fe8 commit 25eb297

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

plugins/anthropic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ to the [official Vertex AI plugin](https://www.npmjs.com/package/@genkit-ai/vert
2828
## Supported models
2929

3030
The plugin supports the most recent Anthropic models:
31-
**Claude 3.7 Sonnet**, **Claude 3.5 Sonnet**, **Claude 3 Opus**, **Claude 3 Sonnet**, and **Claude 3 Haiku**.
31+
**Claude 4.5 Opus**, **Claude 4.5 Sonnet**, **Claude 4.5 Haiku**, **Claude 4 Opus**, **Claude 4 Sonnet**, **Claude 3.7 Sonnet**, **Claude 3.5 Sonnet**, **Claude 3.5 Haiku**, **Claude 3 Opus**, **Claude 3 Sonnet**, and **Claude 3 Haiku**.
3232

3333
## Installation
3434

plugins/anthropic/src/claude.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,24 @@ export const claude45Haiku = modelRef({
254254
version: 'claude-haiku-4-5-20251001',
255255
});
256256

257+
export const claude45Opus = modelRef({
258+
name: 'claude-4-5-opus',
259+
namespace: 'anthropic',
260+
info: {
261+
versions: ['claude-opus-4-5-20251101'],
262+
label: 'Anthropic - Claude 4.5 Opus',
263+
supports: {
264+
multiturn: true,
265+
tools: true,
266+
media: true,
267+
systemRole: true,
268+
output: ['text'],
269+
},
270+
},
271+
configSchema: AnthropicConfigSchema,
272+
version: 'claude-opus-4-5-20251101',
273+
});
274+
257275
export const SUPPORTED_CLAUDE_MODELS: Record<
258276
string,
259277
ModelReference<typeof AnthropicConfigSchema>
@@ -268,6 +286,7 @@ export const SUPPORTED_CLAUDE_MODELS: Record<
268286
'claude-4-opus': claude4Opus,
269287
'claude-4-5-sonnet': claude45Sonnet,
270288
'claude-4-5-haiku': claude45Haiku,
289+
'claude-4-5-opus': claude45Opus,
271290
};
272291

273292
/**

plugins/anthropic/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
claude35Haiku,
2929
claude45Sonnet,
3030
claude45Haiku,
31+
claude45Opus,
3132
claudeModel,
3233
SUPPORTED_CLAUDE_MODELS,
3334
} from './claude.js';
@@ -46,6 +47,7 @@ export {
4647
claude35Haiku,
4748
claude45Sonnet,
4849
claude45Haiku,
50+
claude45Opus,
4951
};
5052

5153
export interface PluginOptions {

0 commit comments

Comments
 (0)