ParallelModelModelSelectionClient.SendAsync<TRequest> method
Submits a model selection job for the specified model.
public Task<ParallelModelModelSelectionSendResponseModel> SendAsync<TRequest>(Guid modelId,
TRequest request, string computeSize, string inputEncryptionKey, string outputEncryptionKey,
TimeSpan? timeout = default, CancellationToken cancellationToken = default)
where TRequest : class, IParallelModelModelSelectionSendRequest
| parameter | description |
|---|---|
| TRequest | The type of the job submission request. |
| modelId | The model identifier. |
| request | The job submission request containing the input and output configuration. |
| computeSize | The compute size identifier sent with the request. |
| inputEncryptionKey | The Base64 encryption key for the input data or artifact. |
| outputEncryptionKey | The Base64 encryption key for the output data or artifact. |
| timeout | An optional timeout for the API request. |
| cancellationToken | A token used to cancel the asynchronous operation. |
Return Value
A task that returns the API response.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | The request is null. |
| ParallelModelConfigurationException | A required configuration value or identifier is invalid. |