complete

suspend fun complete(params: CompleteRequest, options: RequestOptions? = null): CompleteResult?(source)

Sends a completion request to the server, typically to generate or complete some content.

Return

The completion result returned by the server, or null if none.

Parameters

params

The completion request parameters.

options

Optional request options.

Throws

If the server does not support prompts or completion.