Skip to content

feat(codemods): add codemod for providerMetadata key change for google-vertex#11049

Merged
aayush-kapoor merged 1 commit intomainfrom
aayush/codemod-vertex
Dec 11, 2025
Merged

feat(codemods): add codemod for providerMetadata key change for google-vertex#11049
aayush-kapoor merged 1 commit intomainfrom
aayush/codemod-vertex

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

Background

Follow up to PR #10983

Summary

Added codemods for the breaking change highlighted in the migration guide of the PR.

Manual Verification

Tests and fixtures were added

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)

@vercel-ai-sdk vercel-ai-sdk bot added ai/codemod ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/community labels Dec 10, 2025
@aayush-kapoor aayush-kapoor marked this pull request as ready for review December 10, 2025 17:45
| `rename-tool-call-options-to-tool-execution-options` | Renames the `ToolCallOptions` type to `ToolExecutionOptions` |
| `rename-core-message-to-model-message` | Renames the `CoreMessage` type to `ModelMessage` |
| `rename-converttocoremessages-to-converttomodelmessages` | Renames `convertToCoreMessages` function to `convertToModelMessages` |
| `rename-vertex-provider-metadata-key` | Renames `google` to `vertex` in `providerMetadata` and `providerOptions` for Google Vertex files |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe add a note to the vertex key rename section that a codemod exists? could be good for other sections with codemods as well, so people immediately know.

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.

will create a follow up PR for this

@aayush-kapoor aayush-kapoor merged commit 32044aa into main Dec 11, 2025
29 checks passed
@aayush-kapoor aayush-kapoor deleted the aayush/codemod-vertex branch December 11, 2025 18:32
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 provider/community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants