Skip to content

GoogleVertexPartnerOptions

Namespace: Vercel.AI.Google

public sealed class GoogleVertexPartnerOptions

Settings for the OpenAI-compatible MaaS and xAI endpoints on Vertex.

Inheritance: object

View source

public string? BaseUrl { get; set; }

OpenAI-compatible base URL. When empty, it is built from the project and location.

Value: string

View source

public Func<CancellationToken, Task<string>>? GenerateAuthToken { get; set; }

Returns a bearer token. Called once per request. The token replaces any Authorization header.

Value: Func<CancellationToken, Task<string>>

View source

public Dictionary<string, string?> Headers { get; }

Headers set on every request. They replace request headers with the same name.

Value: Dictionary<string, string>

View source

public string? Location { get; set; }

Location. One DNS label. Defaults to global.

Value: string

View source

public string? Project { get; set; }

Project id.

Value: string

View source

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