Skip to content
Open
Changes from all commits
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
10 changes: 5 additions & 5 deletions js/plugins/anthropic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Supported models

The plugin supports the most recent Anthropic models: **Claude Sonnet 4.5**, **Claude Opus 4.1**, **Claude Haiku 4.5**, **Claude Sonnet 4**, **Claude Opus 4**, **Claude 3.5 Haiku**, and **Claude 3 Haiku**.
The plugin supports the most recent Anthropic models: **Claude Haiku 4.5**, **Claude Sonnet 4.5**, and **Claude Opus 4.5**. Additionally, the plugin supports all of the [non-retired older models](https://platform.claude.com/docs/en/about-claude/model-deprecations#model-status).

## Installation

Expand Down Expand Up @@ -39,7 +39,7 @@ The simplest way to generate text is by using the `generate` method:

```typescript
const response = await ai.generate({
model: anthropic.model('claude-3-haiku'),
model: anthropic.model('claude-haiku-4-5'),
prompt: 'Tell me a joke.',
});

Expand Down Expand Up @@ -67,7 +67,7 @@ console.log(response.text);

### Extended thinking

Claude 4 models can expose their internal reasoning. Enable it per-request with the Anthropic thinking config and read the reasoning from the response:
Claude 4.5 models can expose their internal reasoning. Enable it per-request with the Anthropic thinking config and read the reasoning from the response:

```typescript
const response = await ai.generate({
Expand Down Expand Up @@ -151,9 +151,9 @@ You can also create model references using the plugin's `model()` method:
import { anthropic } from '@genkit-ai/anthropic';

// Create model references
const claudeHaiku45 = anthropic.model('claude-haiku-4-5');
const claudeSonnet45 = anthropic.model('claude-sonnet-4-5');
const claudeOpus41 = anthropic.model('claude-opus-4-1');
const claude35Haiku = anthropic.model('claude-3-5-haiku');
const claudeOpus45 = anthropic.model('claude-opus-4-5');

// Use the model reference directly
const response = await claudeSonnet45({
Expand Down