createCompletion

Calls the completions API endpoint. This method is blocking.

Completions are considered Legacy, and OpenAI officially recommends that all developers use the chat completion endpoint instead. See createChatCompletion.

Return

The response from the API

Parameters

request

The request to send to the API