Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions plugins/anthropic/src/claude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,23 @@ export const AnthropicConfigSchema = GenerationCommonConfigSchema.extend({
.optional(),
});

export const claude4Sonnet = modelRef({
name: 'anthropic/claude-4-sonnet',
info: {
versions: ['claude-sonnet-4-20250514'],
label: 'Anthropic - Claude 4 Sonnet',
supports: {
multiturn: true,
tools: true,
media: true,
systemRole: true,
output: ['text'],
},
},
configSchema: AnthropicConfigSchema,
version: 'claude-3-7-sonnet-latest',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify the version

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

});

export const claude37Sonnet = modelRef({
name: 'anthropic/claude-3-7-sonnet',
info: {
Expand Down
2 changes: 2 additions & 0 deletions plugins/anthropic/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { genkitPlugin } from 'genkit/plugin';
import Anthropic from '@anthropic-ai/sdk';

import {
claude4Sonnet,
claude37Sonnet,
claude35Sonnet,
claude3Opus,
Expand All @@ -30,6 +31,7 @@ import {
} from './claude.js';

export {
claude4Sonnet,
claude37Sonnet,
claude35Sonnet,
claude3Opus,
Expand Down