Skip to content

GoogleOptions

Namespace: Vercel.AI.Google

public class GoogleOptions

Gemini settings.

Inheritance: object

Derived: VertexOptions

View source

public string? ApiKey { get; set; }

Explicit key.

Value: string

View source

public string ApiKeyEnvironmentVariable { get; set; }

Environment variable.

Value: string

View source

public string BaseUrl { get; set; }

API origin.

Value: string

View source

public BatchResultDownloads? BatchResultDownloads { get; set; }

Settings for downloading JSON Lines batch results.

Value: BatchResultDownloads

View source

public JsonElement? EmbeddingProviderOptions { get; set; }

Embedding provider options read by GoogleEmbeddingModel.

Value: JsonElement?

View source

public Func<string>? GenerateId { get; set; }

Id factory used for tool calls that the response does not identify.

Value: Func<string>

View source

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

Extra headers merged into every request.

Value: Dictionary<string, string>

View source

public bool UseBearerToken { get; set; }

When set, requests use Authorization: Bearer instead of x-goog-api-key.

Value: bool

View source

public string UserAgent { get; set; }

User-Agent suffix. Defaults to ai-sdk/google.

Value: string

View source

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