OpenAIClient

class OpenAIClient(apiKey: String, baseUrl: String = OpenAIClient.baseUrl, client: HttpClient = httpClient, objectMapper: ObjectMapper = OpenAIClient.objectMapper)

Constructors

Link copied to clipboard
constructor(apiKey: String, baseUrl: String = OpenAIClient.baseUrl, client: HttpClient = httpClient, objectMapper: ObjectMapper = OpenAIClient.objectMapper)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Sends a request to the OpenAI API to generate a chat completion.

Link copied to clipboard

Sends a request to the OpenAI API to generate a completion.

Link copied to clipboard

Retrieves a list of all models from the OpenAI API.