IOpenAIClient.CreateCompletionAsync

IOpenAIClient.CreateCompletionAsync method

Creates a new completion asynchronously.

public Task<CompletionResponse> CreateCompletionAsync(
    CompletionCreateRequest completionCreateRequest, CancellationToken? cancellationToken = default)
ParameterTypeDescription
completionCreateRequestCompletionCreateRequestThe request object containing details for creating the completion.
cancellationTokenNullable`1A 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