GoogleAIPlatformAdapterCreateUrlForModel Method

Constructs a URL for a specific AI model and task by appending the model ID and task to the base URL and API version.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public string CreateUrlForModel(
	string modelId,
	string task
)

Parameters

modelId  String
The identifier of the model for which the URL is being constructed.
task  String
The specific task associated with the model (e.g., generateText).

Return Value

String
A string representing the complete URL for the given model and task.

Implements

IPlatformAdapterCreateUrlForModel(String, String)

See Also