ModelClientGetModelAsync Method

Gets information about a specific Model such as its version number, token limits, parameters and other metadata.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<Model> GetModelAsync(
	string name,
	CancellationToken cancellationToken = default
)

Parameters

name  String
The resource name of the model.
cancellationToken  CancellationToken  (Optional)
The cancellation token to observe while waiting for the task to complete.

Return Value

TaskModel
The Model information.

See Also