ModelClientGetModelAsync Method
Gets information about a specific
Model such as its version number, token limits,
parameters and other metadata.
Namespace: GenerativeAI.ClientsAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public Task<Model> GetModelAsync(
string name,
CancellationToken cancellationToken = default
)
- name String
- The resource name of the model.
- cancellationToken CancellationToken (Optional)
- The cancellation token to observe while waiting for the task to complete.
TaskModelThe
Model information.