Skip to content

GoogleModelOptions

Namespace: E2E

public sealed class GoogleModelOptions

Inheritance: object

View source

public string? ApiKey { get; init; }

Value: string

View source

public string ApiKeyEnv { get; init; }

Environment variable read when ApiKey is empty. Defaults to GOOGLE_GENERATIVE_AI_API_KEY, as the AI SDK.

Value: string

View source

public string BaseUrl { get; init; }

The API root; requests go to {BaseUrl}/models/{Model}:generateContent.

Value: string

View source

public IReadOnlyDictionary<string, string>? Headers { get; init; }

Value: IReadOnlyDictionary<string, string>

View source

public required string Model { get; init; }

Value: string

View source

public string Provider { get; init; }

The key this client reads in ProviderOptions. Its fields (such as generationConfig) are added to the body.

Value: string

View source

public string? ResolveApiKey()

Returns: string

View source