Skip to content

Conversation

@palashgo
Copy link
Collaborator

@palashgo palashgo commented Dec 12, 2025

The official @ai-sdk/google-vertex (/edge) expects google credentials (private key etc) which it exchanges for a token, therefore the trick we use in other factory wrappers to provide a dummy token and later intercepting it, cannot work as is here.

This PR uses pnpm patch to modify the upstream package to support bypassing this token exchange
This direct passing of token is being introduced upstream in the next major version of the package vercel/ai@4d2e88e so the hack can be dropped when supporting the next major version of ai sdk

@palashgo palashgo requested a review from G4brym as a code owner December 12, 2025 10:07
@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2025

🦋 Changeset detected

Latest commit: 5e76b59

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
ai-gateway-provider Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 12, 2025

Open in StackBlitz

npx https://pkg.pr.new/cloudflare/ai/ai-gateway-provider@326
npx https://pkg.pr.new/cloudflare/ai/workers-ai-provider@326

commit: 5e76b59

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants