GenAIHttpClient Property

Gets the underlying HttpClient instance used to perform HTTP requests to Google's AI platform. This property allows for custom configuration of network communication, including request headers, timeouts, and other HTTP-specific settings, enabling seamless interaction with Google's generative and embedding models.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
protected HttpClient? HttpClient { get; }

Property Value

HttpClient

See Also