Skip to content

Comments

feat (providers/anthropic): add claude v4 models#6429

Merged
jeremyphilemon merged 2 commits intomainfrom
jrmy/ant
May 22, 2025
Merged

feat (providers/anthropic): add claude v4 models#6429
jeremyphilemon merged 2 commits intomainfrom
jrmy/ant

Conversation

@jeremyphilemon
Copy link
Contributor

@jeremyphilemon jeremyphilemon commented May 22, 2025

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

  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

@jeremyphilemon jeremyphilemon merged commit f64f4f0 into main May 22, 2025
8 checks passed
@jeremyphilemon jeremyphilemon deleted the jrmy/ant branch May 22, 2025 17:13
jeremyphilemon added a commit that referenced this pull request May 22, 2025
## 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)
@behoss
Copy link

behoss commented May 22, 2025

@jeremyphilemon would you please be able to add model aliases as well?
-> https://docs.anthropic.com/en/docs/about-claude/models/overview#model-aliases

@cacoos
Copy link

cacoos commented May 23, 2025

hey @jeremyphilemon! some logging providers are not being able to get the price correctly, bc the official names are different:

Screenshot 2025-05-23 at 11 02 07 AM https://docs.anthropic.com/en/docs/about-claude/models/overview

what's the best approach here?

@shaper
Copy link
Collaborator

shaper commented May 23, 2025

hey @jeremyphilemon! some logging providers are not being able to get the price correctly, bc the official names are different:

Hi @cacoos can you provide more detail on which logging providers? Asking in part because on review of the Anthropic page I see this:

While aliases are useful for experimentation, we recommend using specific model versions (e.g., claude-sonnet-4-20250514) in production applications to ensure consistent behavior.

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?

jacobkerber pushed a commit to jacobkerber/ai that referenced this pull request Jul 15, 2025
## 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)
jacobkerber pushed a commit to jacobkerber/ai that referenced this pull request Jul 15, 2025
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants