OpenAIHost

class OpenAIHost(val baseUrl: String, val queryParams: Map<String, String> = emptyMap())

A class to configure the OpenAI host. It provides a mechanism to customize the base URL and additional query parameters used in OpenAI API requests.

Constructors

Link copied to clipboard
constructor(baseUrl: String, queryParams: Map<String, String> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Base URL configuration. This is the root URL that will be used for all API requests to OpenAI. The URL can include a base path, but in that case, the base path should always end with a /. For example, a valid base URL would be "https://api.openai.com/v1/"

Link copied to clipboard

Additional query parameters to be appended to all API requests to OpenAI. These can be used to provide additional configuration or context for the API requests.