Skip to content

chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAI#12923

Merged
felixarntz merged 15 commits intomainfrom
fa-fix/remove-obsolete-model-ids
Mar 2, 2026
Merged

chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAI#12923
felixarntz merged 15 commits intomainfrom
fa-fix/remove-obsolete-model-ids

Conversation

@felixarntz
Copy link
Copy Markdown
Collaborator

@felixarntz felixarntz commented Feb 27, 2026

Background

Follow up to:

These issues were opened with type "New provider", so models listed in "New models" in this context does not mean these are new models, but rather that they are all models that the provider API supports.

This PR removes any models that were not in this list but still in our codebase.

Summary

  • Removes obsolete model IDs across the four providers, being conservative to err on the side of keeping one if it might still work:
    • e.g. aliases (model version that lacks the date suffix of a model that's still supported, model version of a supported model that appends "-latest")
    • model IDs that are deemed obsolete here but may be present on other providers (e.g. Gateway, Amazon Bedrock, Google Vertex) remain untouched there
  • Replaces usage in our examples with suitable newer replacement models
  • Replaces usage in documentation code snippets and removes mentions in documentation model lists or model tables

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@tigent tigent Bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation maintenance CI, internal documentation, automations, etc provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/google Issues related to the @ai-sdk/google provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider provider/openai Issues related to the @ai-sdk/openai provider provider/xai Issues related to the @ai-sdk/xai provider labels Feb 27, 2026
Comment thread packages/gateway/src/errors/create-gateway-error.test.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure claude-3-7-sonnet and claude-3-5-haiku are defunkt, while claude-3-haiku is still working?

Maybe share based on what information you are making that change in the PR for audit and future reference?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great question. Yes, this is based on their models endpoint response. Double-checking, it also aligns with their documentation: https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history

Haiku 3 is deprecated only as of recently and will disappear from the API on April 20.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guide has sonnet 3-7 in its file name. Should we rename it to just 20-sonnet.mdx?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted the references; since the model is no longer available, added a deprecation warning for now: c4ac5fd

@nicoalbanese Should we remove obsolete docs like this? Could do that in a follow up.

Comment thread examples/ai-functions/src/e2e/openai.test.ts Outdated
@felixarntz felixarntz merged commit 64a8fae into main Mar 2, 2026
17 of 18 checks passed
@felixarntz felixarntz deleted the fa-fix/remove-obsolete-model-ids branch March 2, 2026 18:40
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk Bot commented Mar 2, 2026

🚀 Published in:

Package Version
@ai-sdk/amazon-bedrock 4.0.70
@ai-sdk/anthropic 3.0.51
@ai-sdk/azure 3.0.39
@ai-sdk/google 3.0.35
@ai-sdk/google-vertex 4.0.69
@ai-sdk/openai 3.0.38
@ai-sdk/xai 3.0.62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation maintenance CI, internal documentation, automations, etc provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/google Issues related to the @ai-sdk/google provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider provider/openai Issues related to the @ai-sdk/openai provider provider/xai Issues related to the @ai-sdk/xai provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants