From dbcb46ad54851b1723b2357fdf91ef1baaebd6e0 Mon Sep 17 00:00:00 2001 From: Corie Watson Date: Thu, 27 Nov 2025 13:07:59 +0000 Subject: [PATCH 1/2] docs(anthropic): update old models to new models --- js/plugins/anthropic/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/plugins/anthropic/README.md b/js/plugins/anthropic/README.md index ec9c9115c0..78d386d548 100644 --- a/js/plugins/anthropic/README.md +++ b/js/plugins/anthropic/README.md @@ -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**. ## Installation @@ -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.', }); @@ -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({ @@ -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({ From 75cb3c3fe027f5fd6d54379211688b610d8431c7 Mon Sep 17 00:00:00 2001 From: Corie Watson Date: Thu, 27 Nov 2025 13:13:34 +0000 Subject: [PATCH 2/2] docs(anthropic): small adjustment for completeness of supported models --- js/plugins/anthropic/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins/anthropic/README.md b/js/plugins/anthropic/README.md index 78d386d548..3ff5bc7b30 100644 --- a/js/plugins/anthropic/README.md +++ b/js/plugins/anthropic/README.md @@ -8,7 +8,7 @@ ## Supported models -The plugin supports the most recent Anthropic models: **Claude Haiku 4.5**, **Claude Sonnet 4.5**, and **Claude Opus 4.5**. +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