Class for handling basic text completion requests.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Create Text Completions.

    Generate a text completion based on the provided prompt and parameters using the provided model.

    Type Parameters

    • S extends undefined | boolean = false
    • R extends undefined | boolean = undefined

    Parameters

    Returns Promise<CompletionResult<S, R>>

    Stream of TextCompletionStream.

    Throws

    If validation fails or an error occurs during the request.