GoogleVertexMaasProvider
Namespace: Vercel.AI.Google
public sealed class GoogleVertexMaasProviderVertex MaaS OpenAI-compatible endpoint.
Inheritance: object
Constructors
Section titled “Constructors”GoogleVertexMaasProvider(string, string?, string?, HttpMessageHandler?)
Section titled “GoogleVertexMaasProvider(string, string?, string?, HttpMessageHandler?)”public GoogleVertexMaasProvider(string project, string? location, string? baseUrl = null, HttpMessageHandler? handler = null)Creates a provider. The OpenAI-compatible client is created on first use.
Parameters
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
baseUrl |
string | |
handler |
HttpMessageHandler |
GoogleVertexMaasProvider(GoogleVertexPartnerOptions, HttpMessageHandler?)
Section titled “GoogleVertexMaasProvider(GoogleVertexPartnerOptions, HttpMessageHandler?)”public GoogleVertexMaasProvider(GoogleVertexPartnerOptions options, HttpMessageHandler? handler = null)Creates a provider. <code class=“paramref”>handler</code> sends the request after the auth headers are added.
Parameters
| Name | Type | Description |
|---|---|---|
options |
GoogleVertexPartnerOptions | |
handler |
HttpMessageHandler |
Properties
Section titled “Properties”BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; }OpenAI-compatible base URL.
Value: string
ClientCreated
Section titled “ClientCreated”public bool ClientCreated { get; }True after LanguageModel(string) has created the inner provider.
Value: bool
Location
Section titled “Location”public string Location { get; }Location. Defaults to global.
Value: string
Project
Section titled “Project”public string Project { get; }Project id.
Value: string
Methods
Section titled “Methods”LanguageModel(string)
Section titled “LanguageModel(string)”public ILanguageModel LanguageModel(string modelId)Returns a chat model and caches the inner provider.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
TransformBody(string, JsonObject)
Section titled “TransformBody(string, JsonObject)”public static JsonObject TransformBody(string modelId, JsonObject body)Sets Llama 4 max_tokens when the caller did not.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string | |
body |
JsonObject |
Returns: JsonObject
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product