GoogleAIPlatformAdapterGetBaseUrl Method

Constructs and retrieves the base URL for the Google Generative AI platform, optionally appending the API version to the URL.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public string GetBaseUrl(
	bool appendVesion = true
)

Parameters

appendVesion  Boolean  (Optional)
A boolean value indicating whether the API version should be appended to the base URL.

Return Value

String
The base URL for the Google Generative AI platform, with or without the API version appended, based on the parameter value.

Implements

IPlatformAdapterGetBaseUrl(Boolean)

See Also