GoogleOptions
Namespace: Vercel.AI.Google
public class GoogleOptionsGemini settings.
Inheritance: object
Derived: VertexOptions
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; set; }Explicit key.
Value: string
ApiKeyEnvironmentVariable
Section titled “ApiKeyEnvironmentVariable”public string ApiKeyEnvironmentVariable { get; set; }Environment variable.
Value: string
BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; set; }API origin.
Value: string
BatchResultDownloads
Section titled “BatchResultDownloads”public BatchResultDownloads? BatchResultDownloads { get; set; }Settings for downloading JSON Lines batch results.
Value: BatchResultDownloads
EmbeddingProviderOptions
Section titled “EmbeddingProviderOptions”public JsonElement? EmbeddingProviderOptions { get; set; }Embedding provider options read by GoogleEmbeddingModel.
Value: JsonElement?
GenerateId
Section titled “GenerateId”public Func<string>? GenerateId { get; set; }Id factory used for tool calls that the response does not identify.
Value: Func<string>
Headers
Section titled “Headers”public Dictionary<string, string?> Headers { get; }Extra headers merged into every request.
Value: Dictionary<string, string>
UseBearerToken
Section titled “UseBearerToken”public bool UseBearerToken { get; set; }When set, requests use Authorization: Bearer instead of x-goog-api-key.
Value: bool
UserAgent
Section titled “UserAgent”public string UserAgent { get; set; }User-Agent suffix. Defaults to ai-sdk/google.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product