VertexOptions
Namespace: Vercel.AI.Google
public sealed class VertexOptions : GoogleOptionsVertex settings. The default route stays compatible with the regional v1 publisher URL.
Inheritance: object → GoogleOptions
Constructors
Section titled “Constructors”VertexOptions()
Section titled “VertexOptions()”public VertexOptions()Creates Vertex options. An empty BaseUrl is replaced with the regional publisher host.
Properties
Section titled “Properties”GenerateAuthToken
Section titled “GenerateAuthToken”public Func<CancellationToken, Task<string>>? GenerateAuthToken { get; set; }Returns a bearer token. Called once per request when ApiKey is empty. A caller-supplied Authorization header wins over the generated token.
Value: Func<CancellationToken, Task<string>>
Project
Section titled “Project”public string Project { get; set; }GCP project id.
Value: string
Region
Section titled “Region”public string Region { get; set; }Vertex location. One DNS label.
Value: string
UpstreamRoutes
Section titled “UpstreamRoutes”public bool UpstreamRoutes { get; set; }When true, URLs follow the upstream host rules (global, eu, us, Express Mode, v1beta1).
The default keeps the regional v1 publisher URL.
Value: bool
Methods
Section titled “Methods”Copy()
Section titled “Copy()”public VertexOptions Copy()Returns a copy. The provider changes the copy, so the options the caller passed in are left as they were.
Returns: VertexOptions
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product