feat (providers/anthropic): add claude v4 models#6429
Conversation
## Background This pull request adds support for Anthropic's new Claude v4 models. ## Summary Updated the model ids to include `claude-4-opus-20250514` and `claude-4-sonnet-20250514`. ## Tasks - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root)
|
@jeremyphilemon would you please be able to add model aliases as well? |
|
hey @jeremyphilemon! some logging providers are not being able to get the price correctly, bc the official names are different:
https://docs.anthropic.com/en/docs/about-claude/models/overview
what's the best approach here? |
Hi @cacoos can you provide more detail on which logging providers? Asking in part because on review of the Anthropic page I see this:
The spirit of this seems like it is, "in production you should use an explicit model id, and not rely on one of these aliases." So I wonder whether the right fix is for the logging providers to update, have you talked with them, and which ones are affected from your perspective? |
## Background This pull request adds support for Anthropic's new Claude v4 models. ## Summary Updated the model ids to include `claude-4-opus-20250514` and `claude-4-sonnet-20250514`. ## Tasks - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root)
This pull request adds support for Anthropic's new Claude v4 models. Updated the model ids to include `claude-4-opus-20250514` and `claude-4-sonnet-20250514`. - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root)

Background
This pull request adds support for Anthropic's new Claude v4 models.
Summary
Updated the model ids to include
claude-4-opus-20250514andclaude-4-sonnet-20250514.Tasks
pnpm changesetin the project root)pnpm prettier-fixin the project root)