update-provider-models
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-3vsgrok-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-codex→gpt-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.mdfiles ofpackages/codemod: Changelog files are historical records, codemods are migration scripts. Do not edit either when updating model IDs.
More from vercel/ai
ai-sdk
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
25.8Kdevelop-ai-functions-example
Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support, demonstrate features, or create test fixtures.
860capture-api-response-test-fixture
Capture API response test fixture.
735list-npm-package-content
List the contents of an npm package tarball before publishing. Use when the user wants to see what files are included in an npm bundle, verify package contents, or debug npm publish issues.
693adr-skill
Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.
454add-provider-package
Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk/<provider> package to integrate an AI service into the SDK.
444