Skip to content

Commit 2b1a0f2

Browse files
authored
docs(anthropic): update old models to new models in README.md
1 parent aa7dedc commit 2b1a0f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎js/plugins/anthropic/README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Supported models
1010

11-
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**.
11+
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).
1212

1313
## Installation
1414

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

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

@@ -62,7 +62,7 @@ console.log(response.text);
6262

6363
### Extended thinking
6464

65-
Claude 4 models can expose their internal reasoning. Enable it per-request with the Anthropic thinking config and read the reasoning from the response:
65+
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:
6666

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

148148
// Create model references
149+
const claudeHaiku45 = anthropic.model('claude-haiku-4-5');
149150
const claudeSonnet45 = anthropic.model('claude-sonnet-4-5');
150-
const claudeOpus41 = anthropic.model('claude-opus-4-1');
151-
const claude35Haiku = anthropic.model('claude-3-5-haiku');
151+
const claudeOpus45 = anthropic.model('claude-opus-4-5');
152152

153153
// Use the model reference directly
154154
const response = await claudeSonnet45({

0 commit comments

Comments
 (0)