Skip to content

Conversation

@aayush-kapoor
Copy link
Contributor

@aayush-kapoor aayush-kapoor commented Dec 8, 2025

Background

#7783

When providerOptions are defined in the vertex provider with the key vertex, they are ignored and not sent in the request to the model; they only work with google key.

Summary

Allow the vertex to be a valid key for setting providerOptions for vertex provider for consistency sake

Manual Verification

test cases 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)

Future Work

Need to add codemods for the changes in the migration guide

Related Issues

Fixes #7783

@aayush-kapoor aayush-kapoor marked this pull request as ready for review December 8, 2025 18:24
@vercel-ai-sdk vercel-ai-sdk bot added ai/provider bug Something isn't working as documented labels Dec 8, 2025
@lgrammel
Copy link
Collaborator

Please add to migration guide. Are any changes to the google vertex provider docs necessary?

@aayush-kapoor
Copy link
Contributor Author

added a migration guide - will be adding codemods in a follow up PR once this lands

@aayush-kapoor aayush-kapoor merged commit ee8cd23 into main Dec 11, 2025
18 checks passed
@aayush-kapoor aayush-kapoor deleted the aayush/7783-bug branch December 11, 2025 18:29
aayush-kapoor added a commit that referenced this pull request Dec 11, 2025
…e-vertex (#11049)

## 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

- [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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected behavior when passing providerOptions to vertex/google provider

3 participants