fix(provider/anthropic): minor follow up to support no-op speed standard#12582
Merged
felixarntz merged 3 commits intomainfrom Feb 14, 2026
Merged
fix(provider/anthropic): minor follow up to support no-op speed standard#12582felixarntz merged 3 commits intomainfrom
felixarntz merged 3 commits intomainfrom
Conversation
shaper
approved these changes
Feb 13, 2026
|
|
||
| ### Fast Mode | ||
|
|
||
| Anthropic supports a `speed` option for `claude-opus-4-6` that enables faster inference with approximately 2.5x faster output token speeds. |
Collaborator
There was a problem hiding this comment.
could be worth adding a link to https://code.claude.com/docs/en/fast-mode for more info
Contributor
|
|
felixarntz
added a commit
that referenced
this pull request
Feb 16, 2026
…peed standard (#12587) This is an automated backport of #12582 to the release-v5.0 branch. FYI @felixarntz This backport has conflicts that need to be resolved manually. ### `git cherry-pick` output ``` Auto-merging content/providers/01-ai-sdk-providers/05-anthropic.mdx CONFLICT (content): Merge conflict in content/providers/01-ai-sdk-providers/05-anthropic.mdx Auto-merging packages/anthropic/src/anthropic-messages-api.ts Auto-merging packages/anthropic/src/anthropic-messages-language-model.test.ts Auto-merging packages/anthropic/src/anthropic-messages-language-model.ts Auto-merging packages/anthropic/src/anthropic-messages-options.ts error: could not apply 23ac4a3... fix(provider/anthropic): minor follow up to support no-op speed standard (#12582) hint: After resolving the conflicts, mark them with hint: "git add/rm <pathspec>", then run hint: "git cherry-pick --continue". hint: You can instead skip this commit with "git cherry-pick --skip". hint: To abort and get back to the state before "git cherry-pick", hint: run "git cherry-pick --abort". hint: Disable this message with "git config set advice.mergeConflict false" ``` --------- Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
gr2m
pushed a commit
that referenced
this pull request
Feb 16, 2026
…ard (#12582) ## Background Follow-up to #12353 which added `speed: 'fast'` support for Claude. A few things were missed: `'standard'` is also a valid value per the Anthropic spec, the `speed` field was missing from the API type definitions, and there was no documentation for the feature. These are low-severity issues, but potentially could lead to problems for those that rely on `providerOptions` schema and may incorrectly reject the `'standard'` value. ## Summary - Accept `'standard'` in addition to `'fast'` for the `speed` provider option (it's a no-op but required by the spec) - Add `AnthropicSpeed` type to the API definitions - Add a "Fast Mode" section to the Anthropic provider docs - Add test for `speed: 'standard'` verifying no beta header is sent ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review) ## Related Issues N/A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Follow-up to #12353 which added
speed: 'fast'support for Claude. A few things were missed:'standard'is also a valid value per the Anthropic spec, thespeedfield was missing from the API type definitions, and there was no documentation for the feature.These are low-severity issues, but potentially could lead to problems for those that rely on
providerOptionsschema and may incorrectly reject the'standard'value.Summary
'standard'in addition to'fast'for thespeedprovider option (it's a no-op but required by the spec)AnthropicSpeedtype to the API definitionsspeed: 'standard'verifying no beta header is sentChecklist
pnpm changesetin the project root)Related Issues
N/A