Skip to content

VertexOptions

Namespace: Vercel.AI.Google

public sealed class VertexOptions : GoogleOptions

Vertex settings. The default route stays compatible with the regional v1 publisher URL.

Inheritance: object → GoogleOptions

View source

public VertexOptions()

Creates Vertex options. An empty BaseUrl is replaced with the regional publisher host.

View source

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

View source

public string Project { get; set; }

GCP project id.

Value: string

View source

public string Region { get; set; }

Vertex location. One DNS label.

Value: string

View source

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

View source

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

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product