Skip to content

Backport: feat(provider/google-vertex): allow overriding Vertex Anthropic auth token generation#14861

Merged
github-actions[bot] merged 2 commits intorelease-v6.0from
backport-pr-14857-to-release-v6.0
Apr 30, 2026
Merged

Backport: feat(provider/google-vertex): allow overriding Vertex Anthropic auth token generation#14861
github-actions[bot] merged 2 commits intorelease-v6.0from
backport-pr-14857-to-release-v6.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This is an automated backport of #14857 to the release-v6.0 branch. FYI @R-Taneja

@github-actions github-actions Bot enabled auto-merge (squash) April 30, 2026 18:58
@R-Taneja R-Taneja added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 30, 2026
@R-Taneja R-Taneja self-requested a review April 30, 2026 19:01
@github-actions github-actions Bot merged commit 7639240 into release-v6.0 Apr 30, 2026
17 checks passed
@github-actions github-actions Bot deleted the backport-pr-14857-to-release-v6.0 branch April 30, 2026 19:48
@github-actions
Copy link
Copy Markdown
Contributor Author

🚀 Published in:

Package Version
ai 6.0.172
@ai-sdk/angular 2.0.173
@ai-sdk/gateway 3.0.107
@ai-sdk/google-vertex 4.0.115
@ai-sdk/langchain 2.0.178
@ai-sdk/llamaindex 2.0.172
@ai-sdk/react 3.0.174
@ai-sdk/rsc 2.0.172
@ai-sdk/svelte 4.0.172
@ai-sdk/vue 3.0.172

gr2m pushed a commit that referenced this pull request Apr 30, 2026
…opic auth token generation (#14869)

Backport of #14857 to \`release-v5.0\`.

The v6 backport (#14861) is already merged. This brings the same change
to v5 so the option is available across all live branches the AI Gateway
depends on.

## Change

Adds optional \`generateAuthToken\` setting on \`createVertexAnthropic\`
(edge + node). When provided, the SDK uses it instead of the default
OAuth exchange. Default behavior unchanged.

\`\`\`ts
createVertexAnthropic({
  project: '...',
  location: '...',
  generateAuthToken: async () => myCustomToken(),
});
\`\`\`

## Tests

29 tests across edge + node, including merge order, fresh-call
semantics, error propagation, user-header override, and (node-only) null
return.

## Risk

Purely additive. No breaking changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Admins only: add this label to a pull request in order to backport it to the prior version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant