Skip to content

GoogleVertexProvider

Namespace: Vercel.AI.Google

public sealed class GoogleVertexProvider : GoogleProvider, IBatchProvider

Google Vertex AI provider.

Inheritance: object → ProviderBase → GoogleProvider

Implements: IBatchProvider

View source

GoogleVertexProvider(HttpClient, VertexOptions?)

Section titled “GoogleVertexProvider(HttpClient, VertexOptions?)”
public GoogleVertexProvider(HttpClient httpClient, VertexOptions? options = null)

Creates a Vertex provider.

Parameters

Name Type Description
httpClient HttpClient
options VertexOptions

View source

public VertexOptions Vertex { get; }

Vertex options.

Value: VertexOptions

View source

Create(VertexOptions?, HttpMessageHandler?)

Section titled “Create(VertexOptions?, HttpMessageHandler?)”
public static GoogleVertexProvider Create(VertexOptions? options = null, HttpMessageHandler? handler = null)

Creates a provider.

Parameters

Name Type Description
options VertexOptions
handler HttpMessageHandler

Returns: GoogleVertexProvider

View source

public override ILanguageModel Interactions(string modelId)

Interactions use the location resource and reject Express Mode.

Parameters

Name Type Description
modelId string

Returns: ILanguageModel

View source

public override ILanguageModel Interactions(GoogleInteractionsAgent agent)

Interactions use the location resource and reject Express Mode.

Parameters

Name Type Description
agent GoogleInteractionsAgent

Returns: ILanguageModel

View source

public override ILanguageModel LanguageModel(string modelId)

Tuned endpoints/ models reject Express Mode and omit /publishers/google.

Parameters

Name Type Description
modelId string

Returns: ILanguageModel

View source

public override ISpeechModel SpeechModel(string modelId)

Chirp speech models use Cloud Text-to-Speech. Gemini speech models use generateContent.

Parameters

Name Type Description
modelId string

Returns: ISpeechModel

View source

public override ITranscriptionModel TranscriptionModel(string modelId)

Gemini transcription ids use generateContent. Other ids use Cloud Speech-to-Text.

Parameters

Name Type Description
modelId string

Returns: ITranscriptionModel

View source

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