Skip to main content

ParallelModelModelClient.GetAsync method

Retrieves the model with the specified identifier through the authentication API.

public Task<ParallelModelModelResponseModel> GetAsync(Guid modelId, TimeSpan? timeout = default,
CancellationToken cancellationToken = default)
parameterdescription
modelIdThe non-empty identifier of the model.
timeoutThe optional timeout for the operation.
cancellationTokenThe token used to cancel the operation.

Return Value​

A task containing the model response.

Exceptions​

exceptioncondition
ParallelModelConfigurationExceptionThe model identifier is empty.
ParallelModelResponseDecodeExceptionThe response is empty or cannot be deserialized.

See Also​