createChatCompletion

@Contract(pure = true)
abstract fun createChatCompletion(request: ChatRequest): ChatResponse

Calls the chat completions API endpoint. This method is blocking.

Return

The response from the API

Parameters

request

The request to send to the API