OpenAIClient.CreateCompletionAsync
OpenAIClient.CreateCompletionAsync method
Creates a new completion asynchronously.
public Task<CompletionResponse> CreateCompletionAsync(
CompletionCreateRequest completionCreateRequest, CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| completionCreateRequest | CompletionCreateRequest | The request object containing details for creating the completion. |
| cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the response from the completion creation.
See Also
- class CompletionResponse
- class CompletionCreateRequest
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF