You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@ai-sdk/google-vertex: Broken URL generated when using location: 'global' (Required for gemini-3.1-pro-preview) #14702
When trying to use the new gemini-3.1-pro-preview model on Vertex AI, Google requires the location to be set to global. However, the SDK constructs an invalid base URL when location is set to 'global'.
The Bug: At packages/provider-utils/src/google-vertex-provider.ts (around line 272), the SDK constructs the URL like this:
@SmileFlow-Steve the version you're using is outdated by a couple of major versions. the fix is already present in the latest stable version of the package!
Although the original report describes a concrete failure in an old version, the maintainer confirms it is already fixed in the current stable package. The remaining issue is an upgrade/support matter rather than an active bug or requested change.
Evidence
The reported failure occurs in @ai-sdk/[email protected], where location: 'global' generates the nonexistent host global-aiplatform.googleapis.com.
A maintainer states that this package version is several major versions outdated and that global endpoint handling is already fixed in the latest stable release.
The recommended resolution is upgrading to @ai-sdk/google-vertex@latest.
Activity
aayush-kapoor commentedon Apr 27, 2026
@SmileFlow-Steve the version you're using is outdated by a couple of major versions. the fix is already present in the latest stable version of the package!
ai/packages/google-vertex/src/google-vertex-provider.ts
Line 167 in 082db44
i'd recommend installing the latest package version
lgrammel commentedon Jul 22, 2026
Identify issue type
Identified as None
Confidence: High
Rationale
Although the original report describes a concrete failure in an old version, the maintainer confirms it is already fixed in the current stable package. The remaining issue is an upgrade/support matter rather than an active bug or requested change.
Evidence
location: 'global'generates the nonexistent hostglobal-aiplatform.googleapis.com.@ai-sdk/google-vertex@latest.