update-provider-models

Installation
SKILL.md

Update Provider Model IDs

This skill covers adding new model IDs and removing obsolete ones across the AI SDK codebase. Each workflow uses search to discover all locations that need changes.

You may be asked to add or remove a single model ID, or to process a list of multiple model ID changes from an issue. For each model ID, follow the appropriate workflow:

  • If a new model ID is being added, follow the <adding-new-model> workflow.
  • If an obsolete model ID is being removed, follow the <removing-obsolete-model> workflow.

Critical Rules

  • Exact matching: Model IDs are often substrings of others (e.g. grok-3 vs grok-3-mini). Always verify each search result is the exact model, not a substring match.
  • Respect sort order: When inserting into any list (type unions, table rows, arrays), observe the existing order and place the new entry accordingly.
  • File naming for examples: Use kebab-case with hyphens replacing dots (e.g. gpt-5.4-codexgpt-5-4-codex.ts).
  • Sequential processing: When handling multiple models, complete the full workflow for one model before starting the next.
  • Affected providers: New model IDs always need to be added to the primary provider package and the AI Gateway. There may be additional affected packages (e.g. Bedrock, Vertex, OpenAI-compatible) if the model is available there or referenced in tests/docs.
  • Never make unrelated changes: Only update model IDs and related references. Don't modify any other code, text, or formatting in the files you edit.
  • Never modify CHANGELOG.md files of packages/codemod: Changelog files are historical records, codemods are migration scripts. Do not edit either when updating model IDs.
Related skills

More from vercel/ai

Installs
126
Repository
vercel/ai
GitHub Stars
24.2K
First Seen
Mar 3, 2026